Тёмный
cdruc
cdruc
cdruc
Подписаться
Building a Golang Web App using SQLite
16:49
14 дней назад
Serving Static Files in Golang
2:36
21 день назад
Caching HTML templates in Golang
5:55
Месяц назад
Create a Reusable Layout in Golang
3:50
Месяц назад
Render an HTML template in Golang
2:46
Месяц назад
Routing in golang
5:31
Месяц назад
Train to become a faster developer
2:42
Месяц назад
Golang routing - a dangerous mistake
2:31
Месяц назад
Effortless Vue.js Forms
9:36
2 месяца назад
Laravel Sanctum 401 Unauthenticated
4:50
4 месяца назад
419 CSRF Token Mismatch - Laravel Sanctum
5:45
4 месяца назад
Debugging Laravel Sanctum CORS errors
6:57
4 месяца назад
Toggle Terminal in ZED
1:50
4 месяца назад
Laravel Sanctum Google Authentication
7:38
6 месяцев назад
Storing Auth Tokens in LocalStorage
4:30
6 месяцев назад
Laravel "Remember me" - How it Works
8:42
7 месяцев назад
Laravel Sanctum SPA Auth Overview
13:34
7 месяцев назад
Is that LocalStorage user even authenticated?!
6:47
7 месяцев назад
TypeScript Types for Laravel Validation Errors
3:03
7 месяцев назад
Chrome Dev Tools: Screenshot Like a Pro!
1:55
8 месяцев назад
Simple Cookie Retrieval: One Effortless Method
4:25
8 месяцев назад
Комментарии
@Netvirux
@Netvirux 13 часов назад
Hello please I'm working on a VTU website using Laravel 11 as the backend and a native app. I want to make my website's API accessible to other VTU websites, allowing them to buy data just like my native app users can. Instead of creating separate endpoints for API and native app users, I thought of using the same endpoint for both. However, I'm unsure how to handle authentication and authorization. I noticed that the Sanctum token isn't a unique key that always returns the same value. Please help me understand how to approach this and secure my API. Thank you!
@jonathanjv1391
@jonathanjv1391 День назад
I have the same issue but working with Angular :( and i have cookie and X-XSRF-TOKEN in my request header TnT
@cdruc
@cdruc День назад
no way. can you send a link repo or is it private? maybe a reproduction of some sorts?
@HAYDERNAJJAR
@HAYDERNAJJAR 2 дня назад
i face an issue that after create new product and i wanna to edit after click save all old images gone
@voiceofthetrue1849
@voiceofthetrue1849 3 дня назад
This is AWESOME!!! I'm really appreciate your content. Is it possible to get this source code some where in GitHub?
@cristiano_ur7-e9m
@cristiano_ur7-e9m 3 дня назад
Can you share how you configured vs code with extensions, it's very convenient.
@MarkWettinger
@MarkWettinger 4 дня назад
This was great! But could you explain why, for me: ```{ data } = await axios.post( "localhost:8000/api/login", { email, password, device_name }, { headers: { Accept: "application/json" }, } ); console.log(data);``` returns: ```HTTP/1.0 200 OK Cache-Control: no-cache, private Content-Type: application/json Date: Sat, 24 Aug 2024 08:10:30 GMT {"token":"my_token"}``` I'm not able to access the token with such a response, as data.token just returns undefined. I'm returning the response using response()->json() EDIT: I can explain it myself now. I was trying to be smart by type-hinting my login controller method in Laravel. I provided 'string' as the type, because I was thinking I'm returning JSON, which is a string, right? But of course the response itself should still be an object. So I removed the type hint and now it works as it's supposed to!
@nabinsaud4688
@nabinsaud4688 4 дня назад
Can you share github link
@janiodrey7858
@janiodrey7858 5 дней назад
very helpful. thank you
@hendisantika
@hendisantika 5 дней назад
Is there any github repo link? Thanks
@techfuture-code-tv
@techfuture-code-tv 5 дней назад
This is awesome. You are indeed a genius. I want to ask, please help do this tutorial with livewire. We will appreciate it more.
@fitodac
@fitodac 6 дней назад
Thank you, and regards Argentina. You helped me a lot with this video.
@unigas4719
@unigas4719 6 дней назад
what's in the getCookie function. Would appreciate if we can see it
@Qubit-sj6qo
@Qubit-sj6qo 6 дней назад
I learnt a lot from sqlite video, going to watch this. Can you please form a playlist for this
@masollano
@masollano 7 дней назад
Is this possible on a Laravel as API installation?
@iamsomraj
@iamsomraj 7 дней назад
watch is inside onMounted ? 😅 Didn’t get this
@cdruc
@cdruc 7 дней назад
it’s a standard vue function (called hook)
@asari999
@asari999 8 дней назад
how to made custom session manager?
@prakashchoudhary3058
@prakashchoudhary3058 8 дней назад
Hi, I'm new to Go with basic understand of language without any web related stuff in Go. You please do a video on previous parts before authentication? Like how to start the server, how to add routes, how to render some html and connect to db?
@cdruc
@cdruc 8 дней назад
yup. look at my last ~3 videos
@prakashchoudhary3058
@prakashchoudhary3058 8 дней назад
@@cdruc Wonderful. Thanks. Cant wait for more Golang stuff like full blown REST API, Microservices, gRCP. Wouldn't mind paying for a course, your teaching style is great. 😊
@davidhendriksen
@davidhendriksen 9 дней назад
This is fantastic! Quick question: Is CSRF protection something I need to worry about?
@cdruc
@cdruc 9 дней назад
oh, for sure! will cover up in a future video👍
@imsrini
@imsrini 9 дней назад
Great video 👏 Very nicely explained 👍 Please make a video explaining auth using OAuth2 next.
@baxiry.
@baxiry. 9 дней назад
this is awesome !!
@alexmarco2392
@alexmarco2392 9 дней назад
🎉
@gungun974
@gungun974 9 дней назад
Cool way to do things personally when I did create my own implementation of logins for my project I go to the route of generating HttpOnly JWT token with the user id to track which user is logged but session cookies are great too. I just didn’t wanted to rely on external database to store the session Id and third party solutions to add session cookies. But I still see the benefits of using session to extends user logged or auto kick users when passwords change. (That’s not impossible with JWT but a little more harder)
@Samuel.Mwangi
@Samuel.Mwangi 9 дней назад
Good stuff 🎉
@Tendeza_
@Tendeza_ 10 дней назад
Great video, you're a legend
@NicolasPL_
@NicolasPL_ 10 дней назад
What should I use to animate it?
@informationgiant7531
@informationgiant7531 11 дней назад
Hey bro i have followed all steps and the cookies is null
@informationgiant7531
@informationgiant7531 11 дней назад
I'm nextjs 14
@cdruc
@cdruc 11 дней назад
impossible
@maenardaboabo1934
@maenardaboabo1934 11 дней назад
Can you make a video how can we setup laravel reverb while using laradock?
@TahiryAllaoui-pj4ey
@TahiryAllaoui-pj4ey 13 дней назад
You're a life saver
@est1997-v8l
@est1997-v8l 14 дней назад
hi teacher, i am trying to set default selected value of the listbox with the data coming from an api. the data is in form of array of object like {id:1,name:'London',time:'...'}. For example i want to set the default selected value 1 and the label as 'London' on first page load. How can i achieve this, thanks for the great video
@lionelagondanou7142
@lionelagondanou7142 14 дней назад
Hello Sir. Thank you for your content, I really like it. Please how to prevent Ziggy from exposing routes in browser source code using inertia js and Laravel?
@cdruc
@cdruc 14 дней назад
you cannot do that. otherwise you wouldnt be able to access them at all. maybe you want to hide a couple of them? not sure if such option exists (but it should!)
@lionelagondanou7142
@lionelagondanou7142 14 дней назад
@@cdruc All right. But doesn't that compromise security?
@cdruc
@cdruc 14 дней назад
​@@lionelagondanou7142 not really - at least not in a serious way. Just because I know a link, doesn't mean I can DO something with it. If there are links that should be accessible only for specific kind of users, ensure you protect those with a middleware. For example: I know the USA White House address. That doesn't mean I can just barge in 😀
@lionelagondanou7142
@lionelagondanou7142 14 дней назад
@@cdruc 😅 I understand better. Thank you so much
@lionelagondanou7142
@lionelagondanou7142 14 дней назад
Hello Sir. Thank you for your content, I really like it. Please how to prevent Ziggy from exposing routes in browser source code using inertia js and Laravel
@Juan-Chan
@Juan-Chan 14 дней назад
Very informative thanks! what's the VS Code database extension in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qmXrYZavQIc.html edit: found qwtel.sqlite-viewer
@Juan-Chan
@Juan-Chan 14 дней назад
found: qwtel.sqlite-viewer
@cdruc
@cdruc 14 дней назад
Yup, that's the one I use 👍
@cdruc
@cdruc 15 дней назад
At 07:28 I should have used the f.Errors.Add(field, message) method 😪Like this: f.Errors.Add(field, "This field cannot be empty.") Same for the MaxLength validation method. Code snippets: github.com/druc/posty
@bevedel
@bevedel 15 дней назад
Awesome. thank you
@pindab0ter
@pindab0ter 15 дней назад
As a full time Laravel developer, all I can say is that I wish a framework as fully fledged and widely used as it was available in a statically typed compiled language like Go…
@solomonogu1393
@solomonogu1393 15 дней назад
10:08 You can also maintain the state on the browser without involving the backend move all the input fields out of the form element and only keep the button inside the form element, then give the form element an id then add the attribute called form in the input which will be the id of the form element, with this you have successfully maintained state without server
@cdruc
@cdruc 15 дней назад
no waaay!! Imma try that! thx
@pindab0ter
@pindab0ter 15 дней назад
How and why does that work?
@cdruc
@cdruc 15 дней назад
imma need an example cuz this doesnt seem to be working
@George-cs5to
@George-cs5to 15 дней назад
Why aren't you using f.Errors.Add() in forms.go? :)
@cdruc
@cdruc 15 дней назад
Cuz I’m a forgetful Freddie 😅 Thanks! I’ll pin a comment with the exact timestamp
@Ross-ng4xl
@Ross-ng4xl 16 дней назад
You really do a great job. Subbed and liked. Keep it up, we really appreciate it.
@Dev-su4mi
@Dev-su4mi 16 дней назад
can you share code with us?
@cdruc
@cdruc 16 дней назад
logged off for today but I’ll put it on github tomorrow and update the video description🫡
@connormc711
@connormc711 16 дней назад
Good idea
@DaviMartins99
@DaviMartins99 19 дней назад
Great video, cdruc! I've been dabbling with Go for the past few weeks, but I have not touched the HTTP side of it so far, still getting used to the syntax, concurrency and stdlib modules/functions. If you have some time, I got a few questions: 1. Is using the internal HTTP package and basically implementing everything from scratch the professional way of building HTTP services in Go? I have seen people from the Go community advising against pulling externals libraries. 2. As of the final state of the application, how testable are the endpoints? 3. And finally, can you share some libraries that you're always pulling in Go projects?
@cdruc
@cdruc 19 дней назад
Thanks! To be honest I'm a Go newbie myself - so I'm not in a position to recommend *any* package right now. From what I understand, the net/http library wasn't that great in the past (no way to specify the request method, no named parameters, etc) - and that's why people turned to things like gin, chi, *whatever*. Yes, the Go community is mostly against using packages. Everybody glorifies the stdlib - which is indeed, great (but probably not THAT great to be outraged when someone asks about libraries lol). Right now I try to build things using *only* the stdlib but just because "I want to do it myself so I can learn more/better/faster", not because "uSiNg PaCkAgEs Is BaD". Basic testing seems nice but haven't really delved into HTTP testing (doesn't look fun though, lots of boilerplate needed). Good luck with your learnings!
@DaviMartins99
@DaviMartins99 19 дней назад
@@cdruc thanks a lot, very insightful :)
@BjörnHafstad
@BjörnHafstad 21 день назад
Great tutorial! Well-explained and easy to follow (y)
@user-lm4ek8zx7j
@user-lm4ek8zx7j 22 дня назад
can you make a video sanctum and next js.
@user-lm4ek8zx7j
@user-lm4ek8zx7j 22 дня назад
it its possible to use auth5 for authentication or no need ? if using sanctum
@william.darrigo
@william.darrigo 25 дней назад
Super detailed! Best tutorial on sanctum so far. Thank you
@selvamp5775
@selvamp5775 26 дней назад
Informative 👍
@jezuschytrus4768
@jezuschytrus4768 27 дней назад
If someone is having token mismatch 419, add this to your axios defaults: withXSRFToken: true
@AmitErandole
@AmitErandole 27 дней назад
Would be interesting to see Laravel offload a heavy task like maybe text to pdf rendering to a golang server. How would you set that up?
@strakhov
@strakhov 28 дней назад
I usually can't withstand coding tutorial videos for their long pauses, introductions and intro animations and so on, but this format is just PERFECT. Thank you so much!
@xeenooo
@xeenooo Месяц назад
Unrelated to the topic. Can I ask you what theme you are using? I watched your other videos, and I find the theme pleasing to my eyes. So I'm kind of curious.
@cdruc
@cdruc 27 дней назад
slab bearded theme arc blueberry
@gavenblsn4753
@gavenblsn4753 Месяц назад
you are amazing
@m0r4ag
@m0r4ag Месяц назад
Goooooddd stuff