Merge branch 'authentication' into dev
This commit is contained in:
@@ -17,7 +17,7 @@ class Authenticate
|
||||
*/
|
||||
public function handle($request, Closure $next, $guard = null)
|
||||
{
|
||||
if (Auth::guard($guard)->guest()) {
|
||||
if (Auth::check()) {
|
||||
if ($request->ajax()) {
|
||||
return response('Unauthorized.', 401);
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -36,5 +36,5 @@ Route::group([
|
||||
'namespace' => 'Admin',
|
||||
'prefix' => 'admin'
|
||||
], function () {
|
||||
Route::get('/', 'Dashboard@getIndex');
|
||||
Route::get('/', 'Dashboard@getIndex')->name('admin.dashboard');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user