You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*I'm using the trust running confide, but after entering Route :: when ('admin ', 'auth.admin'); the access is created excess redirects, has anyone had this problem?
Below is my code.
Bom dia,
Estou utilizando o confide funcionando perfeitamente, mas após inserir Route::when('admin*', 'auth.admin'); ao acessar é criado redirecionamentos em excesso, alguém já teve este problema?
Segue abaixo meus códigos.
Filter
Route::filter('auth.admin', function () {
if (Auth::guest()) {
return Redirect::action('AdminUsersController@login');
}
});
Route::when('admin*', 'auth.admin');
Controller
public function __construct()
{
$this->beforeFilter('auth.admin', ['except' => ['login','doLogin']]);
}
/*
* Login
*/
public function login()
{
if (Confide::user()):
return Redirect::action('AdminHomeController@index');
else:
return View::make('Admin::users.login')
->with('title', 'Acessar');
endif;
}
Good morning,
*I'm using the trust running confide, but after entering Route :: when ('admin ', 'auth.admin'); the access is created excess redirects, has anyone had this problem?
Below is my code.
Bom dia,
Estou utilizando o confide funcionando perfeitamente, mas após inserir Route::when('admin*', 'auth.admin'); ao acessar é criado redirecionamentos em excesso, alguém já teve este problema?
Segue abaixo meus códigos.
Filter
Controller
Routes
The text was updated successfully, but these errors were encountered: