[#2] tv processing progress, credits

This commit is contained in:
2025-01-04 04:02:10 +02:00
parent cbb7b79c69
commit 8f2c48d847
6 changed files with 301 additions and 4 deletions
+10
View File
@@ -35,4 +35,14 @@ class Show extends Model
'vote_average',
'vote_count',
];
public function castList()
{
return $this->belongsToMany(Person::class, 'show_cast', 'show_id', 'person_id');
}
public function crewList()
{
return $this->belongsToMany(Person::class, 'show_crew', 'show_id', 'person_id');
}
}
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShowAlternativeTitle extends Model
{
protected $fillable = [
'iso',
'title',
'show_id',
'type',
];
}