I'm having a hard time of searching on how to retrieve all session except specified field(s). I tried to search here but I cant find the answer.
Like for example. I want to retrieve all below, except the password.
session([
'name' => 'John Doe',
'username' => 'john.doe',
'password' => bcrypt('sample'),
//more fields etc. etc.
]);
I tried the code below
session()->except('password')
But returns me an error:
Call to undefined method Illuminate\Session\Store::except()
Somebody knows how to achieve this? Need help Sirs.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire