Initial Laravel Base

This commit is contained in:
Deon George
2019-05-14 17:52:49 +10:00
parent 95411c05e1
commit ed7087c802
85 changed files with 13433 additions and 3 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');
}
}
}