for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Commands\Site;
use App\Commands\BaseCommand;
use App\Models\Site;
class Remove extends BaseCommand
{
/**
* The signature of the command.
*
* @var string
*/
protected $signature = 'site:remove {site?}';
* The description of the command.
protected $description = 'Remove a site';
* Execute the console command.
* @throws \Exception
* @throws \Throwable
* @return void
public function handle(): void
Site::resolveFromPathOrCurrentWorkingDirectoryOrFail((string) $this->argument('site'))->remove();
}