Added models for albums and songs
This commit is contained in:
1 parent
cdd075f186
commit
904b103f8c
3 files changed
+52
-6
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?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() {
|
||||
return $this->hasMany('FieldProtocol\Music\Song');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user