芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/public_html/vendor/livewire/livewire/scripts/admin
#!/usr/bin/env php studly(); $fullname = 'Support'.$name; $stubDir = __DIR__.'/stubs/FEATURE'; $featuresDir = __DIR__.'/../src/Features'; $featureDir = $featuresDir.'/'.$fullname; // Create the stub directory... File::copyDirectory($stubDir, $featureDir); // Rename the files... File::move($featureDir.'/FEATURE.php.stub', $php = $featureDir.'/'.$fullname.'.php'); File::move($featureDir.'/Test.php.stub', $test = $featureDir.'/Test.php'); // Replace stub contents... File::put($php, str(File::get($php))->replace('[FEATURE]', $fullname)); File::put($test, str(File::get($test))->replace('[FEATURE]', $fullname)); })->purpose('Scaffold a new feature'); $run();