website/app/Fieldprotocol/Music/Album.php

23 lines
338 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 Album extends Eloquent {
protected $table = 'albums';
protected $fillable = [
'title',
'description',
'album_art',
'release_date',
];
public function songs() {
2016-04-21 00:00:28 -04:00
return $this->hasMany('Fieldprotocol\Music\Song');
2016-04-20 21:53:00 -04:00
}
}