2020-07-05 11:29:11 +05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
2022-12-19 14:04:26 +00:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2020-07-05 11:29:11 +05:00
|
|
|
use Jenssegers\Mongodb\Eloquent\Model;
|
|
|
|
use Jikan\Jikan;
|
|
|
|
|
|
|
|
class Episode extends Model
|
|
|
|
{
|
2022-12-19 14:04:26 +00:00
|
|
|
use HasFactory;
|
2020-07-05 11:29:11 +05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
2023-02-11 16:32:16 +00:00
|
|
|
'mal_id', 'title', 'title_japanese', 'title_romanji', 'aired', 'filler', 'recap', 'video_url', 'forum_url', 'synopsis',
|
|
|
|
'createdAt', 'modifiedAt'
|
2020-07-05 11:29:11 +05:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The accessors to append to the model's array form.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $appends = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The table associated with the model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2022-12-19 14:04:26 +00:00
|
|
|
protected $table = 'anime_episode';
|
2020-07-05 11:29:11 +05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes excluded from the model's JSON form.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $hidden = [
|
2022-12-19 14:04:26 +00:00
|
|
|
'_id', 'request_hash'
|
2020-07-05 11:29:11 +05:00
|
|
|
];
|
|
|
|
|
2022-12-19 14:04:26 +00:00
|
|
|
}
|