app/Models/Album.php
/**
     * Get cover image Url
     *
     * @return string
     */
Get cover image Url
@return string
Get cover image Url @return string
public function coverUrl()
    {
        $item = $this->items()->first();
        if ($item) {
            return $item->getFirstMediaUrl('default', 'thumb');
        }
        return 'http://placehold.it/200x200';
    }
public function coverUrl ( ) { $ item = $ this -> items ( ) -> first ( ) ; if ( $ item ) { return $ item -> getFirstMediaUrl ( 'default' , 'thumb' ) ; } return 'http://placehold.it/200x200' ; }
Get cover image Url
 @return string
Get cover image Url @return string