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

  Рет қаралды 33,252

Code With Dary

Code With Dary

Күн бұрын

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
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/c...
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter...
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger....
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithd...
- Newsletter: newsletter.cod...
- Patreon: www.patreon.co...
- GitHub: github.com/cod...
Want to learn more?
- Courses: / @codewithdary
#laravel #laravel8 #laravelapi #api #bearer

Пікірлер: 45
@codewithdary
@codewithdary 2 жыл бұрын
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@simeonanunciado1949
@simeonanunciado1949 2 жыл бұрын
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 ^^
@shohagkhan3677
@shohagkhan3677 2 жыл бұрын
Thank you very much. I would have skipped this part of the tutorial, if I didn't get your comment.
@matthiku
@matthiku 2 жыл бұрын
It worked now and you made my day. Thank you, Sir!
@stevemasaki5295
@stevemasaki5295 2 жыл бұрын
Thank you
@hernanmartinezreumann3279
@hernanmartinezreumann3279 3 жыл бұрын
Excelent Course!! I'll keep you on my radar. Thanks!!
@codewithdary
@codewithdary 3 жыл бұрын
Awesome man thank you! :)
@techjavaid6177
@techjavaid6177 3 жыл бұрын
Awesome instructor on YT 💗
@codewithdary
@codewithdary 3 жыл бұрын
I appreciate that!
@Wolfgang190
@Wolfgang190 3 жыл бұрын
Hey! Thank you so much. Exactly what I was looking for. I just could not understand how to work correctly with these tokens.
@codewithdary
@codewithdary 3 жыл бұрын
Hi! I should that you for watching buddy!
@boredVAR
@boredVAR Жыл бұрын
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
@codewithdary
@codewithdary Жыл бұрын
Interesting, thank you for sharing. Haven't used it in a while but good to know!
@TheBubaololo
@TheBubaololo 2 жыл бұрын
Good content and very understandable explanation. But without user registration it all useless from practical point of view
@vahaggrigoruyan7228
@vahaggrigoruyan7228 3 жыл бұрын
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
@codewithdary
@codewithdary 3 жыл бұрын
Ha! Thank you Vahag! You can setup your database for that. Create a SEO table where you add meta_key etc. Create a pivot table per page so you can easily pull it in.
@vahaggrigoruyan7228
@vahaggrigoruyan7228 3 жыл бұрын
@@codewithdary thank you for the advise bro , guess something will be made no something great will be made
@dariosanchez1373
@dariosanchez1373 3 жыл бұрын
Thanks!
@codewithdary
@codewithdary 3 жыл бұрын
No problem!
@adeyemiadeshina3988
@adeyemiadeshina3988 2 жыл бұрын
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
@codewithdary
@codewithdary 2 жыл бұрын
Do you mean Oauth? That is mostly being used for third part apis.
@softwareEngineerKunwar
@softwareEngineerKunwar 3 жыл бұрын
Nice tutorial
@codewithdary
@codewithdary 3 жыл бұрын
Thank you! Cheers!
@tanzimahmed2886
@tanzimahmed2886 2 жыл бұрын
having this error : "message": "Auth guard [api] is not defined.",
@Simonkaabi
@Simonkaabi 3 жыл бұрын
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 )
@codewithdary
@codewithdary 3 жыл бұрын
I'm working on the API course right now and I'm doing an authorization & authentication course after!
@Simonkaabi
@Simonkaabi 3 жыл бұрын
@@codewithdary No worries thanks for all the hard work it's appreciated a lot
@sasha3852
@sasha3852 Жыл бұрын
thank:)
@codewithdary
@codewithdary Жыл бұрын
Thank you for watching :)
@roxanar6780
@roxanar6780 3 жыл бұрын
Great! I love you ;)
@codewithdary
@codewithdary 3 жыл бұрын
Much love back!
@phpfact
@phpfact 2 жыл бұрын
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
@codewithdary
@codewithdary 2 жыл бұрын
Maybe in the future!
@ojaboemmanuel5417
@ojaboemmanuel5417 2 жыл бұрын
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
@krishnanarasimha1243
@krishnanarasimha1243 3 жыл бұрын
"error": "invalid_grant" -> can you please help me here?
@codewithdary
@codewithdary 3 жыл бұрын
It's either one of the following 3: - the client_id - client_secret pair don't match with each other - the id-secret pair isn't for a password_client but for a personal_access_client (check those columns in the oauth_clients table) - the password is wrong
@MiniPinho098
@MiniPinho098 3 жыл бұрын
I am considering joining ur patron to get access to the discord.
@codewithdary
@codewithdary 3 жыл бұрын
I mean, I think its worth it! Haha!
@MiniPinho098
@MiniPinho098 3 жыл бұрын
@@codewithdary I did it I'm a Patreon now haha. Your videos are great and I rly need help on my project so guess its a win-win situation hahha
@Simonkaabi
@Simonkaabi 3 жыл бұрын
i will be waiting for your answer
@codewithdary
@codewithdary 3 жыл бұрын
Responded ;)
@stackpkofficial8518
@stackpkofficial8518 2 жыл бұрын
if love had a face :)
@codewithdary
@codewithdary 2 жыл бұрын
Haha! Love back ;)
@arashbahariye138
@arashbahariye138 Жыл бұрын
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: kzbin.info/www/bejne/j3jUdI2gmcx9gM0
@codewithdary
@codewithdary Жыл бұрын
I'm good brother, take care watching that tutorial.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 11 МЛН
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 5 МЛН
Laravel Sanctum and Postman
13:54
cdruc
Рет қаралды 10 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 172 М.
Create an API with Laravel Passport & Personal Access Tokens
24:24
Junior Code Review: Laravel Routes, Middleware, Validation and more
19:57
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 625 М.
Laravel SPA Authentication - setup and common mistakes
16:55
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 644 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН