initial laravel commit

This commit is contained in:
Russ Long
2019-10-29 14:59:29 -04:00
parent df55e9f9b1
commit 0f9d04c7e3
87 changed files with 8258 additions and 5 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
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}