{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: //proc/858/cwd/bfti-website//app/Models/Post.php
<?php namespace App\Models; use Spatie\MediaLibrary\HasMedia; use Illuminate\Database\Eloquent\Model; use Spatie\MediaLibrary\InteractsWithMedia; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Factories\HasFactory; use Spatie\MediaLibrary\MediaCollections\Models\Media; class Post extends Model implements HasMedia { use HasFactory, InteractsWithMedia, SoftDeletes; protected $fillable = [ 'category', 'title', 'title_two', 'order', 'description', 'date', 'status', 'is_scroll', 'is_slider', 'is_latest_updates' ]; protected $dates = ['date']; public function registerMediaCollections(): void { $this ->addMediaCollection('post')->singleFile() ->registerMediaConversions(function (Media $media) { $this->addMediaConversion('thumbnail') ->width(120) ->height(67) ->nonQueued(); $this->addMediaConversion('medium') ->width(300) ->height(168) ->nonQueued(); $this->addMediaConversion('large') ->width(600) ->height(340) ->nonQueued(); }); } }
./Ninja\.