Install Laravel.

This commit is contained in:
2023-03-05 20:14:04 +06:00
parent 5545a3e1c5
commit 15225e860c
85 changed files with 11048 additions and 23 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');
}
}