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