Initial commit

This commit is contained in:
Marco Cavalli 2024-10-04 15:29:16 +02:00
commit d7b18a3095
127 changed files with 16738 additions and 0 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');
}
}