One Hat Cyber Team
Your IP :
216.73.216.187
Server IP :
178.63.234.5
Server :
Linux whm01.ins-jo.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Server Software :
Apache
PHP Version :
8.1.32
Buat File
|
Buat Folder
Dir :
~
/
home
/
business
/
public_html
/
vendor
/
laravel
/
ui
/
src
/
Edit File Name :
ControllersCommand.php
<?php namespace Laravel\Ui; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Symfony\Component\Finder\SplFileInfo; class ControllersCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'ui:controllers'; /** * The console command description. * * @var string */ protected $description = 'Scaffold the authentication controllers'; /** * Execute the console command. * * @return void */ public function handle() { if (! is_dir($directory = app_path('Http/Controllers/Auth'))) { mkdir($directory, 0755, true); } $filesystem = new Filesystem; collect($filesystem->allFiles(__DIR__.'/../stubs/Auth')) ->each(function (SplFileInfo $file) use ($filesystem) { $filesystem->copy( $file->getPathname(), app_path('Http/Controllers/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) ); }); $this->info('Authentication scaffolding generated successfully.'); } }
Save