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]);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire