Currently the laravel remember token work if you approver it on email.
How can I store it at the same time of creating the user?
Here's my code
$user = New User;
$user->username = $request->username;
$user->password = bcrypt($request->password);
$user->role = $request->role;
$user->remember_token = '' //I don't know how
$user->save();
Thank you for your help.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/371Ntm6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire