1 | <?php |
||
2 | |||
3 | namespace App\Console\Commands; |
||
4 | |||
5 | use App\Jobs\Tenant\Migration as Job; |
||
6 | use Illuminate\Console\Command; |
||
7 | use LaravelEnso\Companies\Models\Company; |
||
8 | use LaravelEnso\Multitenancy\Commands\Tenant; |
||
9 | |||
10 | class Migrate extends Tenant |
||
11 | { |
||
12 | protected $signature = 'enso:tenant:migrate {--all=false} {--tenantId}'; |
||
13 | |||
14 | protected $description = 'Performs tenant(s) migrations'; |
||
15 | |||
16 | public function dispatch(Company $company): void |
||
17 | { |
||
18 | $this->line(__('Migrating tables for company :company', ['company' => $company->name])); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
19 | |||
20 | Job::dispatch($company); |
||
21 | } |
||
22 | } |
||
23 |