Skip to content

Commit

Permalink
Cleanup bootstrap/app.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed Mar 18, 2024
1 parent 19edf75 commit 1d8a75d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,16 @@
->withProviders()
->withRouting(
web: __DIR__.'/../routes/web.php',
// api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
// channels: __DIR__.'/../routes/channels.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->redirectGuestsTo(fn () => route('login'));
$middleware->redirectUsersTo(AppServiceProvider::HOME);

$middleware->web([
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class,
\Enflow\OutdatedBrowser\OutdatedBrowserMiddleware::class,
]);

$middleware->throttleApi();
})
->withExceptions(function (Exceptions $exceptions) {
// $exceptions->dontReport([
// \Symfony\Component\Console\Exception\CommandNotFoundException::class,
// ]);
//
})->create();

0 comments on commit 1d8a75d

Please sign in to comment.