����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.216.67.104 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/gle.gltechlimited.com/app/ |
Upload File : |
<?php namespace App; use CyrildeWit\EloquentViewable\Contracts\Viewable; use CyrildeWit\EloquentViewable\InteractsWithViews; use Illuminate\Database\Eloquent\Model; use Spatie\Translatable\HasTranslations; class Season extends Model implements Viewable { use HasTranslations; use InteractsWithViews; public $translatable = ['detail']; /** * Convert the model instance to an array. * * @return array */ public function toArray() { $attributes = parent::toArray(); foreach ($this->getTranslatableAttributes() as $name) { $attributes[$name] = $this->getTranslation($name, app()->getLocale()); } return $attributes; } protected $fillable = [ 'tv_series_id', 'season_no', 'publish_year', 'a_language', 'subtitle', 'subtitle_list', 'type', 'thumbnail', 'poster', 'tmdb_id', 'tmdb', 'detail', 'actor_id', 'is_protect', 'season_slug', 'password', 'trailer_url', ]; public function episodes() { return $this->hasMany('App\Episode', 'seasons_id'); } public function firstEpisode() { return $this->hasOne('App\Episode', 'seasons_id')->oldest(); } public function tvseries() { return $this->belongsTo('App\TvSeries', 'tv_series_id')->withDefault(); } public function wishlist() { return $this->hasMany('App\Wishlist'); } public function user() { return $this->belongsTo('App\User', 'created_by', 'id')->withDefault(); } }