🏗️ Laravel Installation

This commit is contained in:
Rico van Zelst
2023-10-14 17:00:26 +02:00
commit 6aa1f21eb1
79 changed files with 11090 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');
}
}