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');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire