lundi 26 février 2018

redirect in the Auth/LoginController

quick question. I am trying to redirect a user in auth/LoginController using a session but for some reason, I keep on getting a syntax error and cannot figure out what could be causing it.

what could be the reason for this? Thanx in advance

use AuthenticatesUsers;

/**
 * Where to redirect users after login.
 *
 * @var string
 */




     protected $redirectTo = Session::get('uri');

    //protected $redirectTo = '/home';

/**
 * Create a new controller instance.
 *
 * @return void
 */
public function __construct()
{
    $this->middleware('guest')->except('logout');
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2t0RFUF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire