mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 23:44:03 +00:00
Ensure commands returns success
This commit is contained in:
parent
2f15dd5473
commit
27eb4f738e
7 changed files with 32 additions and 21 deletions
|
|
@ -23,7 +23,7 @@ class Link extends Command
|
|||
|
||||
protected $description = 'Create or remove tenant symbolic links.';
|
||||
|
||||
public function handle(): void
|
||||
public function handle(): int
|
||||
{
|
||||
$tenants = $this->getTenants();
|
||||
|
||||
|
|
@ -35,7 +35,11 @@ class Link extends Command
|
|||
}
|
||||
} catch (Exception $exception) {
|
||||
$this->error($exception->getMessage());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected function removeLinks(LazyCollection $tenants): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue