vendredi 24 juillet 2020

laravel rest api login time accesstokn cant genrate

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