lundi 13 septembre 2021

Laravel 5 bearer token authentication

How do I get the bearer token that I passed from Postman in a Laravel 5 controller? I am executing the following code:

$request = request(); 
$token = $request->bearerToken();
echo $token;

Nothing is printed.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire