lundi 30 novembre 2015

Laravel 5 : After login front end not accessible at same browser

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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire