Method |
Description |
|
album ( ) |
|
|
byPath ( string $path ) : Song | null |
Get a Song record using its path. |
|
contributingArtist ( ) |
|
|
getArtistAttribute ( ) : Artist |
Get the correct artist of the song. |
|
getFavorites ( User $user, boolean $toArray = false ) : Illuminate\Database\Eloquent\Collection | array |
Get all songs favored by a user. |
|
getLyricsAttribute ( $value ) : string |
Prepare the lyrics for displaying. |
|
getObjectStoragePublicUrl ( Aws\AwsClient $s3 = null ) : string |
Get the song's Object Storage url for streaming or downloading. |
|
getRelatedYouTubeVideos ( string $youTubePageToken = '' ) : object | false |
Get the YouTube videos related to this song. |
|
getS3ParamsAttribute ( ) : boolean | array |
Get the bucket and key name of an S3 object. |
|
getTitleAttribute ( $value ) : string |
Some songs don't have a title. |
|
isS3ObjectAttribute ( ) : boolean |
Determine if the song is an AWS S3 Object. |
|
playlists ( ) |
|
|
scopeInDirectory ( Builder $query, string $path ) : Builder |
Scope a query to only include songs in a given directory. |
|
scrobble ( string $timestamp ) : mixed |
Scrobble the song using Last.fm service. |
|
setTitleAttribute ( $value ) |
Sometimes the tags extracted from getID3 are HTML entity encoded. |
|
updateInfo ( array $ids, array $data ) : array |
Update song info. |
|
updateSingle ( string $title, string $albumName, string $artistName, string $lyrics, integer $track, integer $compilationState ) : self |
Update a single song's info. |
|