1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00
This commit is contained in:
2022-04-29 08:53:19 +07:00
parent 7a6ba238a6
commit f0fa19d3cd
148 changed files with 38214 additions and 91 deletions

View File

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