Clean up all route files, alias routes etc.
This commit is contained in:
@@ -29,7 +29,7 @@ class ComponentController extends Controller
|
||||
$this->subMenu = [
|
||||
'components' => [
|
||||
'title' => trans('dashboard.components.components'),
|
||||
'url' => route('dashboard.components'),
|
||||
'url' => route('dashboard.components.index'),
|
||||
'icon' => 'ion-outlet',
|
||||
'active' => false,
|
||||
],
|
||||
|
||||
@@ -44,13 +44,13 @@ class IncidentController extends Controller
|
||||
$this->subMenu = [
|
||||
'incidents' => [
|
||||
'title' => trans('dashboard.incidents.incidents'),
|
||||
'url' => route('dashboard.incidents'),
|
||||
'url' => route('dashboard.incidents.index'),
|
||||
'icon' => 'ion-android-checkmark-circle',
|
||||
'active' => true,
|
||||
],
|
||||
'schedule' => [
|
||||
'title' => trans('dashboard.schedule.schedule'),
|
||||
'url' => route('dashboard.schedule'),
|
||||
'url' => route('dashboard.schedule.index'),
|
||||
'icon' => 'ion-android-calendar',
|
||||
'active' => false,
|
||||
],
|
||||
|
||||
@@ -50,7 +50,7 @@ class AuthController extends Controller
|
||||
// Temporarily store the user.
|
||||
Session::put('2fa_id', Auth::user()->id);
|
||||
|
||||
return Redirect::route('two-factor');
|
||||
return Redirect::route('auth.two-factor');
|
||||
}
|
||||
|
||||
// We probably want to add support for "Remember me" here.
|
||||
@@ -98,11 +98,11 @@ class AuthController extends Controller
|
||||
// Failed login, log back out.
|
||||
Auth::logout();
|
||||
|
||||
return Redirect::route('login')->withError(trans('forms.login.invalid-token'));
|
||||
return Redirect::route('auth.login')->withError(trans('forms.login.invalid-token'));
|
||||
}
|
||||
}
|
||||
|
||||
return Redirect::route('login')->withError(trans('forms.login.invalid-token'));
|
||||
return Redirect::route('auth.login')->withError(trans('forms.login.invalid-token'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user