mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Update Genre model, MusicInfo model and related migration, use these models in some of the queries
This commit is contained in:
@@ -19,4 +19,9 @@ class Genre extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
public function music()
|
||||
{
|
||||
return $this->hasMany('App\Models\MusicInfo', 'genres_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user