for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EasyPanel\Commands\Actions;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
class Reinstall extends Command
{
protected $signature = 'panel:reinstall';
protected $description = 'Reinstall whole the package';
public function handle()
$status = $this->confirm("Do you really want to reinstall the panel ? (All components will be deleted)", true);
if($status) {
Artisan::call("panel:uninstall", [
'--force' => true,
]);
Artisan::call("panel:install");
$this->info("The package was reinstalled!");
return;
}
$this->info("The process was canceled");