One Hat Cyber Team
Your IP :
216.73.217.131
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
esetkocsi
/
www
/
app
/
Models
/
Edit File:
ContentBlocks.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; class ContentBlocks extends Model { use HasFactory; protected $table = 'content_blocks'; protected $guarded = []; protected $casts = [ 'content' => 'array' ]; protected static function boot() { parent::boot(); self::created(function (self $instance) { $converted = componentName($instance->content_blocks); if (!File::exists(app_path('View/Components/' . componentName($converted) . '.php'))) { Artisan::call('make:component', [ 'name' => $converted ]); } }); self::deleting(function (self $instance) { File::delete(app_path('View/Components/' . componentName($instance->content_blocks) . '.php')); File::delete('views/components/' . changeUnderscore($instance->content_blocks) . '.blade.php'); }); } }
Simpan