Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function firstImage(){
- if ($this->GalleryItems()->First()->Image()) {
- return $this->GalleryItems()->First()->Image();
- } else {
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement