tenantId = $tenant->id; $this->migrationParameters = $migrationParameters; } /** * Execute the job. * * @return void */ public function handle() { Artisan::call('tenants:migrate', [ '--tenants' => [$this->tenantId], ] + $this->migrationParameters); } }