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
@armandopenatamayo6914 күн бұрын
You can do console.log({a}) instead of what you’re doing to log your variables with a tag
@dan_le_brown5 күн бұрын
Another nice watch!
@dan_le_brown5 күн бұрын
Good video! Thank you
@mahbodahmadi57158 күн бұрын
What's your color theme?
@user-wc7kp2bi7n8 күн бұрын
i got 404 while sending a request to sanctum/csrf-cookie
@robkom10 күн бұрын
What's the use-case for recentlySuccessful?
@cdruc9 күн бұрын
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
@robkom9 күн бұрын
@@cdruc Ah, interesting, thanks!
@robkom10 күн бұрын
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 👍
@nubaysan11 күн бұрын
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)
@harshakamalinda912511 күн бұрын
Thank u so much ❤❤❤
@edsonteliaken636113 күн бұрын
Can you share the source code or the getCookie function atleast thanks
@thillaiyadiking782212 күн бұрын
can get
@edsonteliaken636112 күн бұрын
@@thillaiyadiking7822 where to get? you have any link?
@tuananhdo187013 күн бұрын
Bought here by microsoft copilot!
@cdruc12 күн бұрын
lol 😂
@johnvergilbulac991914 күн бұрын
when i try localhost it works, but having trouble using Herd domain.
@orpheusohms14 күн бұрын
Very nice. This is almost identical to inertia form
@ezz_dev14 күн бұрын
Got error 405 method not allowed You should cover the problems not the best scenarios.
@Tofusky15 күн бұрын
very nice video, love it
@santicanabalramos66715 күн бұрын
Nice video. Btw, you could use structuredClone from js which creates also a deep copy of the object without depend on lodash :D
@iUmerFarooq15 күн бұрын
More Vuejs tutorials please 💚
@nateg916 күн бұрын
jsfiddle or github link if possible :) ?
@ItsRyanStudios16 күн бұрын
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.
@Drumstix4216 күн бұрын
Really well put together. Nicely done.
@QiroLab16 күн бұрын
Wow, that is very useful, Thanks for sharing.
@khangle687217 күн бұрын
will you do another one for using socialize with react native?
@julienSibille17 күн бұрын
The hooks system seems so powerfull !
@saiv4617 күн бұрын
2:00 Why install lodash when we have structuredClone()?
@AksoomHussain786617 күн бұрын
missing tallstack code snippet but i successfully implement it and it work like a charm 😍
@hichamdev17 күн бұрын
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
@cdruc17 күн бұрын
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
@hichamdev16 күн бұрын
@@cdruc i have invited you on email
@cdruc16 күн бұрын
thanks! i just sent a PR with a possible fix
@hichamdev16 күн бұрын
@@cdruc it's work good, thank you sooooo much.
@hichamdev16 күн бұрын
@@cdruc it's work good, thank you sooooo much.
@drugoviic17 күн бұрын
why is the video title "effortless"😅
@cdruc17 күн бұрын
people click on this stuff 😂 as with all things in life, everything becomes effortless once you put in the work 😀
@oketafred17 күн бұрын
Always learning new things from your videos 🔥🔥🔥
@philmareu18 күн бұрын
Fantastic explanation! Great job.
@potatosheep19 күн бұрын
New sub! thank you for helping us
@ila654520 күн бұрын
I dont understand what did I miss.I am still getting cORS errror..Any help?
@cdruc20 күн бұрын
well…what error are you getting?
@ila654518 күн бұрын
@@cdruc thanka for the reply,I re run npm install and got it fixed.
@kishanbsh21 күн бұрын
There should be a pre cooked keybindings right?
@ozzyfromspace21 күн бұрын
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-wg7rk24 күн бұрын
what is the name of the editor please
@jacquesmatike928928 күн бұрын
Thanks a lot 🎉
@mo0nix592Ай бұрын
why my cookie browser empty after get /sanctum/csrf?
@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Ай бұрын
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Ай бұрын
still like it.
@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Ай бұрын
ngl, i haven't tried reverb just yet 😂
@imtanuki4106Ай бұрын
nice, clean explanation
@abusalahamusazangi6507Ай бұрын
Hello Could you please guide how to modify default email verify mail template?
@israelilobaАй бұрын
Thank you so much, i have been on this error for two days now
@23pointblankАй бұрын
Thank you!!. This saved me
@nabilkrissaneАй бұрын
Thank you very much
@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Ай бұрын
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Ай бұрын
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Ай бұрын
@@cdruc Thanks for informing me.
@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Ай бұрын
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Ай бұрын
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Ай бұрын
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Ай бұрын
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 😢