Property | Type | Description | |
---|---|---|---|
$casts | array |
Method | Description | |
---|---|---|
album ( ) | ||
byPath ( string $path ) : |
Get a Song record using its path. | |
contributingArtist ( ) | ||
getArtistAttribute ( ) : |
Get the correct artist of the song. | |
getFavorites ( |
Get all songs favored by a user. |
public getArtistAttribute ( ) : |
||
return |
public static getFavorites ( |
||
$user | ||
$toArray | boolean | |
return | Illuminate\Database\Eloquent\Collection | array |