i make API by laravel passport i wanna save passport token in cookies when login is successful i tried to make this in home controller but it always generate different key
$UserToken=Auth::user()->createToken('MyApp')->accessToken;
cookie('valid', $UserToken, true,10);
return response(view('Ades Admin.DashBoard'))->cookie('valid', $UserToken, true,10);
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oIfHhL
via IFTTT
Aucun commentaire:
Enregistrer un commentaire