Skip to content

Commit

Permalink
refactor: adjusted routes to /
Browse files Browse the repository at this point in the history
  • Loading branch information
im-machakata committed Apr 7, 2024
1 parent 39809b7 commit 7822fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Config/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@
if (!model(Account::class)->first()) {
command('db:seed Accounts');
}
return redirect()->to('/');
return redirect('/');
});
$routes->get('re-install', function () {
command('migrate:rollback --force --all');
command('migrate');
command('db:seed Accounts');
command('db:seed Departments');
return redirect()->to('/');
return redirect('/');
});
$routes->get('crash-it', function () {
command('migrate:rollback --force --all');
return redirect()->to('/');
return redirect('/');
});
});

0 comments on commit 7822fb5

Please sign in to comment.