[#1] processing videos and livewire
This commit is contained in:
@@ -67,4 +67,9 @@ class Movie extends Model
|
||||
{
|
||||
return $this->belongsToMany(WatchProvider::class, 'movie_watch_providers', 'movie_id', 'watch_provider_id');
|
||||
}
|
||||
|
||||
public function videos()
|
||||
{
|
||||
return $this->belongsToMany(Video::class, 'movie_videos', 'movie_id', 'video_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user