I m facing a problem with laravel 5, After login when i am trying to go to WelcomeController@index page it redirect me at admin home page (4th route). my routes define
Route::get('admin' , 'Auth\AuthController@getLogin' ) ;
Route::get('/', 'WelcomeController@index');
Route::resource('fdws','FdwController');
Route::get('/home', ['as' => 'home', 'uses' => 'FdwController@index']);
I think this will happen because of middelware RedirectIfAuthenticated
public function handle($request, Closure $next)
{
if ($this->auth->check())
{
return new RedirectResponse(url('/home'));
}
return $next($request);
}
One more thing welcome controller is for frontend no session, Can any one suggest me how can i access the welcome page index after login
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1StpD5R
via IFTTT
Aucun commentaire:
Enregistrer un commentaire