jikan-rest/app/Episode.php

47 lines
895 B
PHP
Raw Normal View History

2020-07-05 11:29:11 +05:00
<?php
namespace App;
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
{
use HasFactory;
2020-07-05 11:29:11 +05:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'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
*/
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 = [
'_id', 'request_hash'
2020-07-05 11:29:11 +05:00
];
}