Initialize laravel app

This commit is contained in:
Frankie B 2023-06-13 21:59:16 +01:00 committed by Frankie B
commit 8af402a9e2
149 changed files with 10967 additions and 1464 deletions

View file

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
use Illuminate\Http\Request;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*/
protected function redirectTo(Request $request): ?string
{
return $request->expectsJson() ? null : route('login');
}
}