$this->argument('name')]; $options['--path'] = 'database/migrations/tenant'; if(! empty($this->option('create'))) { $options['--create'] = $this->option('create'); } if(! empty($this->option('table'))) { $options['--table'] = $this->option('table'); } try { if(! File::exists($options['--path'])) { File::makeDirectory($options['--path'], 0755, true); } $this->call('make:migration', $options); $this->info('Migration created into database/migrations/tenant'); } catch (\Throwable $th) { $this->error('Something went wrong!'); dd($th); } } }