In my Laravel 5.7 app I show next code
$request = request();
// if (empty($request)) return false; .// That does not work
$loggedUserAccessGroups = $request->session()->get('loggedUserAccessGroups');
$logged_user_ip = $request->session()->get('logged_user_ip');
to check if user has access level in session, and it works ok but I make automatic tests and got error:
local.ERROR: Session store not set on request.
I tried to make checks if session is set and fails to return false.
Which is the right way ?
Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire