Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class DomainDeleteCommand extends Command |
||
9 | { |
||
10 | protected $name = 'domain:delete'; |
||
11 | protected $description = 'Delete a domain from the application'; |
||
12 | |||
13 | public function handle(): int |
||
14 | { |
||
15 | $this->laravel['domains']->delete($this->argument('domain')); |
||
16 | |||
17 | $this->components->info("Domain {$this->argument('domain')} has been deleted."); |
||
18 | |||
19 | return 0; |
||
20 | } |
||
21 | |||
22 | protected function getArguments() |
||
26 | ]; |
||
27 | } |
||
29 |