Laravel 8 REST API With Sanctum Authentication

Laravel 8 REST API With Sanctum Authentication

Traversy Media

3 года назад

539,095 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

ameh joseph onyeke
ameh joseph onyeke - 07.09.2023 18:36

Very clear and well explained, Sir are you having a Laravel course on Udemy or any where?

Ответить
chowiee
chowiee - 30.08.2023 11:42

"message": "CSRF token mismatch.",
how i fix that?/

Ответить
1NSiGHT
1NSiGHT - 11.08.2023 06:43

Did you ever make a follow up video in where you added a front-end to this? I'm learning as I go and I would very much like to see you connect an already existing Front-end site like maybe Vue or React and setting up Laravel as the backend with MySQL for the db. That's basically what I'm trying to do right now and I'm just scouring your channel for anything that I can find that can help me with that. So far, this video has what I need but not everything. Still a huge help though.

Ответить
Milton Maleiane Júnior
Milton Maleiane Júnior - 06.08.2023 20:38

Thanks sir!

Ответить
Aldrin John Encina
Aldrin John Encina - 04.08.2023 02:29

thank you so much

Ответить
nero
nero - 02.08.2023 20:54

Thanks! Helped me

Ответить
vvooki.
vvooki. - 12.07.2023 03:27

Great tutorial!
For those who are wondering is this tutorial is valid for laravel 10 the ansewer is YES. There are some small changes in Sanctum but if you copy same things as Brad with the exception of actually using documentation for laravel 10 you will be fine.
One thing that got me stuck for like 5 minutes is destroying token in logout function. The documentation says it should be something like this: "$request->user()->tokens()->delete();"

Ответить
JuniorMR
JuniorMR - 29.06.2023 13:30

Amazing tutorial.

By the way d you recomend me to.learn php or laravel?

Ответить
Jackson Sophat
Jackson Sophat - 15.06.2023 08:22

Does he plan to have any new Laravel videos?

Ответить
Imran alhallaq
Imran alhallaq - 01.06.2023 15:21

thanks a lot ♥

Ответить
Ms T
Ms T - 25.05.2023 20:13

is this valid for 2023 laravel 10? please someone answers?

Ответить
Kaleb Calverley
Kaleb Calverley - 18.05.2023 18:29

My IDE says that there is an issue with the line in AuthController "auth()->user()->tokens()->delete();" (logout method), specifically with the "tokens()" part of it, but yet my logout requests seem to be working fine.

Not sure how to make it stop saying there is an issue, but just putting this here in case it is significant. Have I missed anything?

Edit: everything works fine, I think it's just a plugin not figuring out inheritances.

Ответить
Trace Channel
Trace Channel - 08.05.2023 15:32

love your voice

Ответить
Jason Goossens
Jason Goossens - 30.04.2023 01:28

"It's all fallin' appaaaahht"
I love hearing your Boston accent come out in unguarded moments! 😅

Ответить
Jherrera
Jherrera - 28.04.2023 12:07

Amazing tutorial, well explained, straight to the point and easy to understand, really really good quality

Ответить
michael ibezim
michael ibezim - 27.04.2023 12:26

Just finished another great topic from brad, you are soo helpful

Ответить
Olamide Abass
Olamide Abass - 26.04.2023 16:02

Can we get a video that incorporates the frontend as well?

Ответить
Olamide Abass
Olamide Abass - 26.04.2023 14:02

All i can say is, God bless you so much, Brad.

Ответить
A-ezzat
A-ezzat - 22.04.2023 13:55

your explanation is do simple and nice

Ответить
Muhammed nani964
Muhammed nani964 - 16.04.2023 00:37

a very good course, and just we need more courses like this ( and little more explaining about Eloquent orm) with laravel just for api not mvc , next i will try the mvc with laravel :)

Ответить
Ravier KONAN
Ravier KONAN - 12.04.2023 07:25

great content.

Ответить
عائلة محمد دهمان
عائلة محمد دهمان - 29.03.2023 21:42

Thank you very much ..
You are a great teacher and your way of explaining is amazing.
I have been researching this topic for more than 4 months, and I only understood it through you. Thank you very much
🤩

Ответить
Jaker
Jaker - 23.03.2023 15:14

Very accessible tutorial on token-based authentication. Thank you!

Ответить
Sobir Malilov
Sobir Malilov - 18.03.2023 23:02

Thanks bro it helped me

Ответить
Thorbjørn Hedegaard
Thorbjørn Hedegaard - 08.03.2023 16:12

in logout auth()->user()->tokens()->delete(); tokens() is undefined method

Ответить
hiba adil
hiba adil - 24.02.2023 06:19

Thank you so much ,I really appreciate it.

Ответить
Indulekha
Indulekha - 18.02.2023 16:33

This is awesome. Short, sweet and definitely very useful. Thanks a lot

Ответить
Samuel Onowuko
Samuel Onowuko - 18.02.2023 13:11

In making a controller, what is the difference between adding the --api as you did here and adding --resource?
Thanks.

Ответить
A Web Expert
A Web Expert - 13.02.2023 12:25

We all thank you very much! But, please, stop saying: "it's all in the documentation" because we're here precisely because we're too lazy to read the documentation! We prefer watching your videos! 😅🤣😂

Ответить
moath elmarmori
moath elmarmori - 12.02.2023 19:55

You are a legend 🫡

Ответить
Max B.
Max B. - 06.02.2023 13:23

Thanks for the content!

Ответить
ioccode ioccode
ioccode ioccode - 04.02.2023 00:13

Thank you!!!!!

Ответить
imran shahid
imran shahid - 02.02.2023 18:53

please make a video in which explain how we can make login with google and facebook api.

Ответить
GillianTV
GillianTV - 01.02.2023 02:39

Sir anytime there has a validation error it redirects me to / and error 302. How can i fix this please

Ответить
StillPickingAName
StillPickingAName - 31.01.2023 00:43

Thank you so much! This was very clear and well explained! God bless you!

Ответить
Imran Khan
Imran Khan - 20.01.2023 10:10

Thank you Brad.. This video helped me gettting started in laravel.. Love from Pakistan

Ответить
Mike the Tree Climber
Mike the Tree Climber - 16.01.2023 03:23

For api routes use the helper function "Route::apiResouce()

Ответить
Omar Boudabbous
Omar Boudabbous - 11.01.2023 20:07

Method Illuminate\\Auth\\RequestGuard::logout does not exist. !!

Ответить
Travel_Hunt
Travel_Hunt - 01.01.2023 00:26

Fantastic Work, You have made many Peoples' life pretty easy

Ответить
Contact Capability Squad
Contact Capability Squad - 16.12.2022 13:40

Great tutorial. Please create one with Laravel & GraphQL.

Ответить
Flutter APK
Flutter APK - 15.12.2022 14:34

Thank you so much Brad for such a wonderful to the point tutorial!!!

Ответить
Harry Weißmann
Harry Weißmann - 25.11.2022 20:55

Seriously the quality of your content is beyond insane. I have not gotten this level of education during my whole time on the university. How the possibility of learning something new has improved within the last 15 years... It always blows my mind.

Ответить
Umer Rasheed
Umer Rasheed - 24.11.2022 13:34

on local this is perfact, i think nothing is batter than this.... but on Live server when I host my code. i Got authentication Error. can you help ? or someone?

Ответить
Joseph izz
Joseph izz - 22.11.2022 11:26

I quit watching your videos online, now i only give it a like then download it, so that i can go back an forth, and get the whole value. Just finshed laravel crash course yesterday, and i really appreciate what you are giving us *for free*, brad is truly a valuable resource.

Ответить
Get Money Coding
Get Money Coding - 10.11.2022 17:33

Super helpful! Thank you

Ответить