Added models for albums and songs

This commit is contained in:
gballan1
2016-04-20 21:53:00 -04:00
parent cdd075f186
commit 904b103f8c
3 changed files with 52 additions and 6 deletions

View File

@ -0,0 +1,21 @@
<?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',
];
public function album() {
return $this->belongsTo('FieldProtocol\Music\Album');
}
}