diff --git a/resources/views/components/finishing.blade.php b/resources/views/components/finishing.blade.php index 6f060ef..5694542 100644 --- a/resources/views/components/finishing.blade.php +++ b/resources/views/components/finishing.blade.php @@ -1,9 +1,11 @@ true]);} catch (exception $e) {} + try { + $migrator = app('migrator'); + $migrator->run(database_path('migrations'), ['--force' => true]); + } catch (exception $e) {} try {DB::table('buttons')->delete();} catch (exception $e) {} try {DB::table('buttons')->truncate();} catch (exception $e) {} - try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {} + try { + $seeder = new ButtonSeeder(); + $seeder->run(); + } catch (exception $e) {} Schema::enableForeignKeyConstraints(); try {