Init
This commit is contained in:
36
app/Models/EpisodeSubtitle.php
Normal file
36
app/Models/EpisodeSubtitle.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EpisodeSubtitle extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* Indicates If The Model Should Be Timestamped.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $fillable = [
|
||||
'episode_id',
|
||||
'subtitle_id',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the according subtitle.
|
||||
*/
|
||||
public function subtitle()
|
||||
{
|
||||
return $this->belongsTo(Subtitle::class, 'subtitle_id');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user