Toggle Terminal in ZED
1:50
2 ай бұрын
Laravel Sanctum SPA Auth Overview
13:34
Golang CLI hangman game
8:46
6 ай бұрын
Laravel CSRF explained
9:42
6 ай бұрын
CORS in Laravel & Sanctum
10:38
7 ай бұрын
Laravel Sanctum and Postman
13:54
8 ай бұрын
Laravel SPA Auth different domains
10:51
Nuxt 3 - environment variables
8:36
GO structs: read and save as JSON
11:30
Пікірлер
@lestratege4
@lestratege4 15 сағат бұрын
Omg what an explanation dude... Always Small Channel makes good content and step by step.. Thank you... Try to Understand this technical words long time ago. U got a new sub. Thx again
@armandopenatamayo691
@armandopenatamayo691 4 күн бұрын
You can do console.log({a}) instead of what you’re doing to log your variables with a tag
@dan_le_brown
@dan_le_brown 5 күн бұрын
Another nice watch!
@dan_le_brown
@dan_le_brown 5 күн бұрын
Good video! Thank you
@mahbodahmadi5715
@mahbodahmadi5715 8 күн бұрын
What's your color theme?
@user-wc7kp2bi7n
@user-wc7kp2bi7n 8 күн бұрын
i got 404 while sending a request to sanctum/csrf-cookie
@robkom
@robkom 10 күн бұрын
What's the use-case for recentlySuccessful?
@cdruc
@cdruc 9 күн бұрын
for when you want to show a “success” message for a brief period of time. you can add a v-if=form.recentlySuccessful>Changes saved</p>. Something like that
@robkom
@robkom 9 күн бұрын
@@cdruc Ah, interesting, thanks!
@robkom
@robkom 10 күн бұрын
VeeValidate does all this + much more, and is documented (and the native Constraint Validation API can also help a lot), but this is a nice speed-run showcasing how it might be set up from scratch 👍
@nubaysan
@nubaysan 11 күн бұрын
Hi @cdruc, thanks for this awesome vid. but how can i use this to the token based auth? cause we need token response to the frontend (nuxt)
@harshakamalinda9125
@harshakamalinda9125 11 күн бұрын
Thank u so much ❤❤❤
@edsonteliaken6361
@edsonteliaken6361 13 күн бұрын
Can you share the source code or the getCookie function atleast thanks
@thillaiyadiking7822
@thillaiyadiking7822 12 күн бұрын
can get
@edsonteliaken6361
@edsonteliaken6361 12 күн бұрын
@@thillaiyadiking7822 where to get? you have any link?
@tuananhdo1870
@tuananhdo1870 13 күн бұрын
Bought here by microsoft copilot!
@cdruc
@cdruc 12 күн бұрын
lol 😂
@johnvergilbulac9919
@johnvergilbulac9919 14 күн бұрын
when i try localhost it works, but having trouble using Herd domain.
@orpheusohms
@orpheusohms 14 күн бұрын
Very nice. This is almost identical to inertia form
@ezz_dev
@ezz_dev 14 күн бұрын
Got error 405 method not allowed You should cover the problems not the best scenarios.
@Tofusky
@Tofusky 15 күн бұрын
very nice video, love it
@santicanabalramos667
@santicanabalramos667 15 күн бұрын
Nice video. Btw, you could use structuredClone from js which creates also a deep copy of the object without depend on lodash :D
@iUmerFarooq
@iUmerFarooq 15 күн бұрын
More Vuejs tutorials please 💚
@nateg9
@nateg9 16 күн бұрын
jsfiddle or github link if possible :) ?
@ItsRyanStudios
@ItsRyanStudios 16 күн бұрын
Damn this is quite beautiful. I implemented something very similar from scratch; glad to see I wasn't just making up a needlessly convoluted mess. There are some abstractions here that are quite nice, but I'd be hesitant to implement in my codebase just because I know it would be difficult for other devs to follow. I sometimes need to prioritize explicit-ness over eloquence unfortunately... I try my best to consider future devs working in the codebase, who may be unfamiliar with these conventions.
@Drumstix42
@Drumstix42 16 күн бұрын
Really well put together. Nicely done.
@QiroLab
@QiroLab 16 күн бұрын
Wow, that is very useful, Thanks for sharing.
@khangle6872
@khangle6872 17 күн бұрын
will you do another one for using socialize with react native?
@julienSibille
@julienSibille 17 күн бұрын
The hooks system seems so powerfull !
@saiv46
@saiv46 17 күн бұрын
2:00 Why install lodash when we have structuredClone()?
@AksoomHussain7866
@AksoomHussain7866 17 күн бұрын
missing tallstack code snippet but i successfully implement it and it work like a charm 😍
@hichamdev
@hichamdev 17 күн бұрын
i need a video for "Laravel 11 Sanctum SPA Authentication" please, i have watched all videos on youtube and google and ai websites with no solution, i need it soon as possible and i can pay for it, no problem
@cdruc
@cdruc 17 күн бұрын
no way you watch all my videos 😂 There's little to no difference between Laravel 10 and 11 in terms of how sanctum SPA auth works. I can help you for free if you give me access to the repo + .env file. Send me an e-mail at druc[at]pinsmile.com 99.999% sure it's one of these: kzbin.info/www/bejne/g2jKd3ajrr6Whbc kzbin.info/www/bejne/povHq62Bm5Wbaac kzbin.info/www/bejne/hWfMk4OCe8t0npI
@hichamdev
@hichamdev 16 күн бұрын
@@cdruc i have invited you on email
@cdruc
@cdruc 16 күн бұрын
thanks! i just sent a PR with a possible fix
@hichamdev
@hichamdev 16 күн бұрын
@@cdruc it's work good, thank you sooooo much.
@hichamdev
@hichamdev 16 күн бұрын
@@cdruc it's work good, thank you sooooo much.
@drugoviic
@drugoviic 17 күн бұрын
why is the video title "effortless"😅
@cdruc
@cdruc 17 күн бұрын
people click on this stuff 😂 as with all things in life, everything becomes effortless once you put in the work 😀
@oketafred
@oketafred 17 күн бұрын
Always learning new things from your videos 🔥🔥🔥
@philmareu
@philmareu 18 күн бұрын
Fantastic explanation! Great job.
@potatosheep
@potatosheep 19 күн бұрын
New sub! thank you for helping us
@ila6545
@ila6545 20 күн бұрын
I dont understand what did I miss.I am still getting cORS errror..Any help?
@cdruc
@cdruc 20 күн бұрын
well…what error are you getting?
@ila6545
@ila6545 18 күн бұрын
@@cdruc thanka for the reply,I re run npm install and got it fixed.
@kishanbsh
@kishanbsh 21 күн бұрын
There should be a pre cooked keybindings right?
@ozzyfromspace
@ozzyfromspace 21 күн бұрын
best explanation of the topic I've come across! and fun fact, the config is typesafe by default... I love Nuxt! 🎉 one important clarification: if you dumped your config (or just payment api key) into the vue template (which is server rendered!), the paymentApiKey would actually get sent to the frontend. The hydration step would fail ofc, so nuxt would quickly overwrite the value quickly, but it would still be there in the network tab until the user refreshed their page. for the curious, that is why the UI "glitches" around 7:35, and if you pause the video just right, you can actually see the paymentApiKey in the browser -- he would have gotten warnings about this in the console. all this to say, definitely don't use your API keys for anything that directly interacts with the frontend _____ Again, awesome video! 🏆
@WalidWalid-wg7rk
@WalidWalid-wg7rk 24 күн бұрын
what is the name of the editor please
@jacquesmatike9289
@jacquesmatike9289 28 күн бұрын
Thanks a lot 🎉
@mo0nix592
@mo0nix592 Ай бұрын
why my cookie browser empty after get /sanctum/csrf?
@cdruc
@cdruc Ай бұрын
spa and api domains are different, you messed up with the session_domain config value, you don’t have cors support_credentials set to true, you dont set credentials: include or withCredentials: true (axios) when making the request. any of these might cause it
@karemsobhy8020
@karemsobhy8020 Ай бұрын
Can you make a video about how to work with sanctum staging server with a domain and using localhost for frontend dev environment How to make the localhost talk to the staging and accept cookies without breaking the real staging frontend
@idelvertyondouii5787
@idelvertyondouii5787 Ай бұрын
still like it.
@Daaboo
@Daaboo Ай бұрын
Well this is fun and all but the real trouble starts when you dive deeper and have to validate every post or get request back and forth to different api endpoints to get the right user ID and compare it to other columns in other relationships. Example, setting up a private chat in Laravel Reverb. Totally impossible.
@cdruc
@cdruc Ай бұрын
ngl, i haven't tried reverb just yet 😂
@imtanuki4106
@imtanuki4106 Ай бұрын
nice, clean explanation
@abusalahamusazangi6507
@abusalahamusazangi6507 Ай бұрын
Hello Could you please guide how to modify default email verify mail template?
@israeliloba
@israeliloba Ай бұрын
Thank you so much, i have been on this error for two days now
@23pointblank
@23pointblank Ай бұрын
Thank you!!. This saved me
@nabilkrissane
@nabilkrissane Ай бұрын
Thank you very much
@sonesay
@sonesay Ай бұрын
Hey just looking into this problem myself. I am using laravel breeze and next.js but I don't understand why its become a problem now. Out of the box it worked fine and every now and then I would get this issue while trying to login but it would eventually fix it self. This time around its not going away so can you explain why this problem has come up?
@sonesay
@sonesay Ай бұрын
Hey I watched the video again and check what my next.js front end was sending and it looks like for some reason it stopped sending the X-XSRF-TOKEN but it was still in the cookie so I just changed the Laravel backend to check there also for it as a temp work around. Thanks for the very helpful information.
@cdruc
@cdruc Ай бұрын
hey, if you’re using axios, they stopped sending it automatically a while ago. you will have to tell it to include it by setting withXSRFToken: true
@sonesay
@sonesay Ай бұрын
@@cdruc Thanks for informing me.
@MyTekkiVideo
@MyTekkiVideo Ай бұрын
@@cdruc "hey, if you’re using axios, they stopped sending it automatically a while ago. you will have to tell it to include it by setting withXSRFToken: true" There are a few developers who just cried and said thank you very much for this comment.
@Bukosaure
@Bukosaure Ай бұрын
I am completely stuck with the 401 Unauthorized error when trying to access api routes protected with sanctum. I tried everything I could, I just don't understand... I did watch your most recent video (kzbin.info/www/bejne/hWfMk4OCe8t0npI) in hope to solve my problem, but nothing seems to do the trick. The /sanctum/crsf-cookie and /login routes work. It's only the api ones protected by sanctum that are always unauthorized. Do I have to set the port of Postman to :5173? For infos, I am using Laravel 11.
@Bukosaure
@Bukosaure Ай бұрын
Ok so I found the solution in this video : kzbin.info/www/bejne/lZ3JpKmQj7ymjqc. Am I forcing to use the Bearer token because Postman doesn't use the credentials?
@user-vl1cs7yd5e
@user-vl1cs7yd5e Ай бұрын
Hello its me again, im having a problem with cookies it simultaneously pilling up which makes an 400 bad request error Cookie or Header too big. thanks again. i have this in my logout method Auth::guard('web')->logout(); $request->session()->invalidate(); $request->session()->regenerateToken();
@Mateoo092
@Mateoo092 Ай бұрын
I have not been able to use laravel/reverb because I cannot find a way to use cookie authentication instead of token authentication in private channels 😢
@steevenjackson667
@steevenjackson667 Ай бұрын
Seriously. Thank you so much!!!