website/app/Fieldprotocol/Music/Song.php

23 lines
336 B
PHP
Raw Permalink Normal View History

2016-04-20 21:53:00 -04:00
<?php
namespace Fieldprotocol\Music;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Song extends Eloquent {
protected $table = 'songs';
protected $fillable = [
'title',
'album_id',
'track_order',
2016-04-20 22:39:03 -04:00
'audio_file',
2016-04-20 21:53:00 -04:00
];
public function album() {
2016-04-21 00:00:28 -04:00
return $this->belongsTo('Fieldprotocol\Music\Album');
2016-04-20 21:53:00 -04:00
}
}