website/app/Fieldprotocol/Music/Song.php

22 lines
318 B
PHP
Raw 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',
];
public function album() {
return $this->belongsTo('FieldProtocol\Music\Album');
}
}