Call to a member function createToken() on array in file enter code here if(!Auth::attempt($user)){ return reponse(['massage'=>'error']); }enter code here
$success['token'] = $user->createToken('MyApp')-> accessToken; $success['email'] = $user->email; return response()->json(['user'=>$user]);
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BtBfJj
via IFTTT
Aucun commentaire:
Enregistrer un commentaire