One Hat Cyber Team
Your IP :
216.73.217.126
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
/
public_html
/
app
/
Console
/
Commands
/
Edit File:
CreateInclude.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\File; class CreateInclude extends Command { protected $signature = 'make:include {--path=} {name}'; protected $description = 'Create a Include view file'; public function __construct() { parent::__construct(); } public function handle() { $name = $this->argument('name'); $path = $this->option('path') ? $this->option('path') . '/' : ''; // Check if the folder path exists, and create it if necessary if (!$path) { $path = '/elements/'; } $viewPath = resource_path("views/$path$name.blade.php"); $folderPath = resource_path("views/$path"); if (!File::isDirectory($folderPath)) { File::makeDirectory($folderPath, 0755, true, true); } if (File::exists($viewPath)) { $this->error('View already exists!'); return; } // Create the view file File::put($viewPath, ''); $this->info('Include created successfully.'); } }
Simpan