[#1] watch providers

This commit is contained in:
2024-12-30 03:19:01 +02:00
parent 89f80b7937
commit c16b36a6da
5 changed files with 138 additions and 0 deletions
+5
View File
@@ -62,4 +62,9 @@ class Movie extends Model
{
return $this->belongsToMany(ReleaseDate::class, 'movie_release_dates', 'movie_id', 'release_date_id');
}
public function watchProviders()
{
return $this->belongsToMany(WatchProvider::class, 'movie_watch_providers', 'movie_id', 'watch_provider_id');
}
}