Initial commit

This commit is contained in:
root committed 2026-05-09 17:32:17 +02:00
commit 9d73f82529
5575 files changed
+281989

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
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.
*/
#[\Override]
protected function redirectTo(Request $request): ?string
{
return $request->expectsJson() ? null : route('login');
}
}