public function getListingPhoto()
    {
        return $this->photos->filter(function ($photo) {
            return $photo->primary;
        })->first() ?: new \Hamjoint\Mustard\Media\Photo();
    }
public function getListingPhoto()
    {
        return $this->photos->filter(function ($photo) {
            return $photo->primary;
        })->first() ?: new \Hamjoint\Mustard\Media\Photo();
    }
public function getListingPhoto ( ) { return $ this -> photos -> filter ( function ( $ photo ) { return $ photo -> primary ; } ) -> first ( ) ? : new \ Hamjoint \ Mustard \ Media \ Photo ( ) ; }
Return the primary photo.

@return Photo
Return the primary photo .