芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/livewire/livewire/src/Commands/FileManipulationCommand.php
build(); } public function isFirstTimeMakingAComponent() { $namespace = str(config('livewire.class_namespace'))->replaceFirst(app()->getNamespace(), ''); $livewireFolder = app_path($namespace->explode('\\')->implode(DIRECTORY_SEPARATOR)); return ! File::isDirectory($livewireFolder); } public function writeWelcomeMessage() { $asciiLogo = <<
_._>
/ /
o>\ \ >
|| () () __ >
|_\ /_|>
|| || \\\// /_\ \\\ // || |~~ /_\ >
|>`
|>`
|> >
|| || \/ \\\_ \^/ || || \\\_ > EOT; // _._ // / /o\ \ || () () __ // |_\ /_| || || \\\// /_\ \\\ // || |~~ /_\ // |`|`| || || \/ \\\_ \^/ || || \\\_ $this->line("\n".$asciiLogo."\n"); $this->line("\n
Congratulations, you've created your first Livewire component!> 🎉🎉🎉\n"); if ($this->confirm('Would you like to show some love by starring the repo?')) { if(PHP_OS_FAMILY == 'Darwin') exec('open https://github.com/livewire/livewire'); if(PHP_OS_FAMILY == 'Windows') exec('start https://github.com/livewire/livewire'); if(PHP_OS_FAMILY == 'Linux') exec('xdg-open https://github.com/livewire/livewire'); $this->line("Thanks! Means the world to me!"); } else { $this->line("I understand, but am not going to pretend I'm not sad about it..."); } } }