Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. function firstImage(){
  2.     if ($this->GalleryItems()->First()->Image()) {
  3.         return $this->GalleryItems()->First()->Image();
  4.     } else {
  5.         return null;
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement