[#2] tv processing progress, credits
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ShowAlternativeTitle extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'iso',
|
||||
'title',
|
||||
'show_id',
|
||||
'type',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user