How to Generate an Bearer Access Token | Laravel API Course | Learn Laravel API | Laravel API

preview_player
Показать описание
In this video we will be creating an access token to grant a client permission to access the API – Learn how to create APIs in Laravel for its real-time communication support.

📚 New Udemy Course

📲 Let’s plan a meeting

💌 Newsletter

🔥 Resources

Want to learn more?

#laravel #laravel8 #laravelapi #api #bearer
Рекомендации по теме
Комментарии
Автор

for those getting error message Unauthenticated even the token is correct
just replace laravel 8 prebuilt routes api
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});

into

Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});

this is the solution greate tutorial sir dary godbless ^^

simeonanunciado
Автор

Excelent Course!! I'll keep you on my radar. Thanks!!

hernanmartinezreumann
Автор

having this error : "message": "Auth guard [api] is not defined.",

tanzimahmed
Автор

Mr dary how can i protect my API with a custom API middleware in laravel and also generate a token that will be used as a bearer token to access my endpoints

ojaboemmanuel
Автор

Hey! Thank you so much. Exactly what I was looking for. I just could not understand how to work correctly with these tokens.

Wolfgang
Автор

Thanks for the video. I have been contemplating on the difference between access token and api key. Api key is what we get mostly when using third party apis. How can api key be implemented Pls? Thanks for the help

adeyemiadeshina
Автор

I'm pretty sure Laravel Passport now has been upgraded, no need to add the routes function and in some cases when testing the access token, you'll realise that Auth guard [Passport] will not be executed for some reason

boredVAR
Автор

Good content and very understandable explanation. But without user registration it all useless from practical point of view

TheBubaololo
Автор

mr DARY can you do a video with nwidart/laravel-modules and what is the right way to make a laravel application as a SAAS ? for different clients ( while using the same database )

Simonkaabi
Автор

"error": "invalid_grant" -> can you please help me here?

krishnanarasimha
Автор

Hey there dear god of Laravel i got one question, ould you please make a video of how to do the SEO right for various types of situations, we currently are really stuck on that question cause we got a seperated layouts and i dont know what to do in this kind of situation, its lke we got single app and home.blade.php layouts and we are yielding the main staff in between both of them by simply extending them from another directory, thank you for your videos they helped me a lot during development

vahaggrigoruyan
Автор

Sir please Please Login And Registration Api create.... please please

you are using tinker and run RAW command please make video special for Login + Registration

phpfact
Автор

I am considering joining ur patron to get access to the discord.

MiniPinho
Автор

anyone can pickup whats written inside the documentation and make a video out of it. the important part is to explain what are the pieces and why they should be in place. this is what your tutorial lacks. i recommend you watch this tutorial over the same concept so that you can notice the difference:

arashbahariye