some progress

This commit is contained in:
2024-12-30 01:51:28 +02:00
parent 71701e19bf
commit 7436b95f15
53 changed files with 5610 additions and 180 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MovieCollection extends Model
{
protected $fillable = [
'name',
'slug',
'poster_path',
'backdrop_path',
'tmdb_id',
];
public function movies() {
return $this->belongsToMany(Movie::class, 'movies_in_collection', 'collection_id', 'movie_id');
}
}