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
/
View File Name :
Template.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Artisan; class Template extends Model { use HasFactory; protected $table = "template"; protected $guarded = []; protected $casts = ['content' => 'array']; protected static function boot() { parent::boot(); // TODO: Change the autogenerated stub self::created(function (self $instance) { $contentElem = []; foreach ($instance->content as $content) { if ($content['element_type'] == 'include') { Artisan::call('make:include', [ 'name' => $content['element_name'] ]); } if (!array_key_exists($content['element_type'], $contentElem)) { $contentElem[$content['element_type']] = $content['element_name'] . ','; } else { $contentElem[$content['element_type']] .= $content['element_name'] . ','; } } Artisan::call('make:view', [ 'name' => $instance->name, '--includes' => $contentElem['include'] ?? '', '--yields' => $contentElem['yield'] ?? '' ]); }); } }