cdruc
cdruc
  • 189
  • 980 151

Відео

How I handle panics in Golang Servers
Переглядів 37221 день тому
How I handle panics in Golang Servers
Always do this when uploading files in Golang
Переглядів 4942 місяці тому
Always do this when uploading files in Golang
Simple file uploads in Golang
Переглядів 8382 місяці тому
Simple file uploads in Golang
Configure Golang web apps using command-line flags
Переглядів 3523 місяці тому
Configure Golang web apps using command-line flags
Preventing CSRF Attacks in Golang
Переглядів 1,1 тис.3 місяці тому
Preventing CSRF Attacks in Golang
Session-Based Authentication in Golang
Переглядів 4,9 тис.3 місяці тому
Session-Based Authentication in Golang
Reusable Form Validation in Golang: Step-by-Step Tutorial
Переглядів 9454 місяці тому
Code snippets: github.com/druc/posty
Building a Golang Web App using SQLite
Переглядів 5 тис.4 місяці тому
Code snippets: tallpad.com/series/golang-randoms/lessons/building-and-structuring-a-golang-web-app-using-sqlite
Serving Static Files in Golang
Переглядів 5674 місяці тому
Code snippets: tallpad.com/series/golang-randoms/lessons/serve-static-files-in-golang
Caching HTML templates in Golang
Переглядів 6464 місяці тому
Code snippets: tallpad.com/series/golang-html/lessons/caching-html-templates-in-golang
Create a Reusable Layout in Golang
Переглядів 7274 місяці тому
Snippets: tallpad.com/series/golang-html/lessons/create-a-reusable-html-layout-in-golang
Gracefully Handle Template Errors in Golang
Переглядів 2644 місяці тому
Snippets: tallpad.com/series/golang-html/lessons/gracefully-handle-template-errors-in-golang
Render an HTML template in Golang
Переглядів 1,3 тис.4 місяці тому
Code and notes/FAQ: tallpad.com/series/golang-html/lessons/render-an-html-template-in-golang
Routing in golang
Переглядів 9205 місяців тому
Go version: 1.22.4 Timestamps: 0:00 - Intro 0:12 - Starting a server 0:36 - Router 0:53 - Fixed paths 1:33 - Subtree paths 1:57 - 404 matching 2:40 - Dynamic paths 2:50 - Overlapping paths 3:26 - Request methods 4:22 - Route and query parameters 4:50 - Optional route parameters
Golang routing - a dangerous mistake
Переглядів 6835 місяців тому
Golang routing - a dangerous mistake
Effortless Vue.js Forms
Переглядів 4,6 тис.6 місяців тому
Effortless Vue.js Forms
Laravel Sanctum 401 Unauthenticated
Переглядів 2,8 тис.7 місяців тому
Laravel Sanctum 401 Unauthenticated
419 CSRF Token Mismatch - Laravel Sanctum
Переглядів 7 тис.7 місяців тому
419 CSRF Token Mismatch - Laravel Sanctum
Debugging Laravel Sanctum CORS errors
Переглядів 3,1 тис.7 місяців тому
Debugging Laravel Sanctum CORS errors
Toggle Terminal in ZED
Переглядів 5 тис.8 місяців тому
Toggle Terminal in ZED
Laravel Authentication for React Native Apps using Breeze and Sanctum
Переглядів 9 тис.8 місяців тому
Laravel Authentication for React Native Apps using Breeze and Sanctum
Laravel Sanctum Google Authentication
Переглядів 6 тис.9 місяців тому
Laravel Sanctum Google Authentication
Storing Auth Tokens in LocalStorage
Переглядів 40 тис.10 місяців тому
Storing Auth Tokens in LocalStorage
Laravel Sancum - automatic CSRF cookie retrieval
Переглядів 1,8 тис.10 місяців тому
Laravel Sancum - automatic CSRF cookie retrieval
Laravel "Remember me" - How it Works
Переглядів 3,4 тис.10 місяців тому
Laravel "Remember me" - How it Works
Laravel Sanctum SPA Auth Overview
Переглядів 11 тис.10 місяців тому
Laravel Sanctum SPA Auth Overview
Handling Axios Errors in Vue.js with Laravel Sanctum
Переглядів 2,2 тис.11 місяців тому
Handling Axios Errors in Vue.js with Laravel Sanctum
Is that LocalStorage user even authenticated?!
Переглядів 1,2 тис.11 місяців тому
Is that LocalStorage user even authenticated?!
TypeScript Types for Laravel Validation Errors
Переглядів 1,1 тис.11 місяців тому
TypeScript Types for Laravel Validation Errors

КОМЕНТАРІ

  • @nircoren8161
    @nircoren8161 3 дні тому

    Great video, thanks

  • @NFM-nb7dl
    @NFM-nb7dl 6 днів тому

    pls make real world project with laravel typescript vue , I like the way you explain

  • @vitorsiqueira7306
    @vitorsiqueira7306 6 днів тому

    wow onScopeDispose is very useful and it reduces a lot of complexity to handle unmout stuff

  • @dhruvinprajapati4345
    @dhruvinprajapati4345 6 днів тому

    thank you, it's help me loat....

  • @kristoffergonzaga5143
    @kristoffergonzaga5143 8 днів тому

    Would be a lot better if you can provide a repo :)

  • @Nothwarren
    @Nothwarren 11 днів тому

    Hi there ! How would you handle token revalidation ? I'm using symfony and in my case I have a revalidation token and specific route to call laravek doesn't have this behavior ?

    • @cdruc
      @cdruc 8 днів тому

      hello from what I can remember there's no revalidation/refresh tokens using laravel sanctum. if you need that you'd probably have to adjust/build it yourself.

  • @Markham-Dev
    @Markham-Dev 12 днів тому

    Out of curiosity, what purpose does the device_name serve?

  • @HridoyKhan-nf9le
    @HridoyKhan-nf9le 19 днів тому

    this is very helpful. its the best video . thanks for this

  • @riichikunda
    @riichikunda 20 днів тому

    Thanks very much, it helped a lot!

  • @reynanresurreccion8313
    @reynanresurreccion8313 20 днів тому

    can you show getCookie code?

  • @johncyestibeiro6894
    @johncyestibeiro6894 20 днів тому

    Can you make a video on how template composition works. I'm coming from Jinja2 and find it difficult to understand how templates work in go

  • @jonathanlambrecht5642
    @jonathanlambrecht5642 22 дні тому

    I find Golang so simple that, to me, its beautiful.

  • @phoenixtricks
    @phoenixtricks 24 дні тому

    Great tutorial! Thanks for providing it.

  • @audoublev_edu-me8jp
    @audoublev_edu-me8jp 24 дні тому

    Hi, may I ask what font you're using, looks so nice 😅😅

    • @cdruc
      @cdruc 24 дні тому

      ibm plex mono

  • @sadhakbj
    @sadhakbj 26 днів тому

    Bro at least give one video per week.

  • @qozeemmonsurudeen9594
    @qozeemmonsurudeen9594 26 днів тому

    Why do we have to login everytime after getting the xsrf token and laravel session before we can access the protected route? Is there a workaround thats the issue am currently facing

    • @cdruc
      @cdruc 26 днів тому

      you shouldnt have to. something is wrong in your setup

    • @qozeemmonsurudeen9594
      @qozeemmonsurudeen9594 26 днів тому

      After a lot of debug, I was able to solve it just now by implementing my own login logic instead of using Breeze auth api provided by defaults

  • @youarethecssformyhtml
    @youarethecssformyhtml 26 днів тому

    What's the name of your vs code's color theme please

  • @haizk
    @haizk 27 днів тому

    wow very straight forward! thanks

  • @mutalovsarvar
    @mutalovsarvar 28 днів тому

    Bro you saved my life. Your video should be included in official docs

  • @ArtikLamartik
    @ArtikLamartik 28 днів тому

    you from Iași?

  • @ingles-u6b
    @ingles-u6b 28 днів тому

    Why is the CSRF token generated previously of login? I mean I thought, it's not necessary that the user have any ID if he doesn't identify, doesn't it?

    • @cdruc
      @cdruc 28 днів тому

      the token is associated to the session id. and every visitor, logged in or not, has one

    • @ingles-u6b
      @ingles-u6b 28 днів тому

      ​@@cdruc Thanks for answer, Your content is pretty good. I hope your channel grows much more; it deserves it 😋😋

  • @MuhamadAzizPrasetyo
    @MuhamadAzizPrasetyo 28 днів тому

    how about performance if we have a ton of value in that array?

  • @Juikun
    @Juikun Місяць тому

    what is timmy generate?

    • @cdruc
      @cdruc 29 днів тому

      just me making fun of chatgippidy before it comes and takes my job

  • @hosseingh9146
    @hosseingh9146 Місяць тому

    Great explanation!

  • @ajaykumar-l3y2n
    @ajaykumar-l3y2n Місяць тому

    Good sir my issue fixed

  • @antoniocosta7565
    @antoniocosta7565 Місяць тому

    Exatamente o que eu tava procurando, valeu demais 🎉

  • @pccc2011
    @pccc2011 Місяць тому

    I want to know that we will put route /login in web.php, after authenticated and get access token, all api link i request with different methods can re-use authenticated session?

  • @pccc2011
    @pccc2011 Місяць тому

    This is the most clearly video explain about Laravel Sanctum and Cookie based. Thanks so much!! ❤

  • @yuxiang4218
    @yuxiang4218 Місяць тому

    Great video! The current stacks like Next.js and Prisma feel too abstract-it's refreshing to see everything work with basic HTTP server, raw SQL and scanners, and native HTML form method!

  • @satishksharma
    @satishksharma Місяць тому

    Ofcourse your video is amazing for beginners. If you provide GitHub link that is helpful for us.

  • @sadekhossain9566
    @sadekhossain9566 Місяць тому

    Cookie is sent but same way in header isn't csrf cookie also sent by browser .

  • @AhmadAhmad-po4nl
    @AhmadAhmad-po4nl Місяць тому

    Extremely helpful, thanks a lot!!

  • @Aejkv
    @Aejkv Місяць тому

    Which theme / font are you using in VsCode ?

  • @mon_codes
    @mon_codes Місяць тому

    You explain it so perfectly!

  • @thelaitas
    @thelaitas Місяць тому

    I love you, man

  • @othmanalmahdy
    @othmanalmahdy Місяць тому

    a great video but i have a problem the html dose not render the posts and i loged the posts before sending them to html and there is posts avilable but no data to render ?

    • @cdruc
      @cdruc Місяць тому

      that's weird if you send me a repo link, I'll gladly have a look!

  • @TotallyNotZoid
    @TotallyNotZoid Місяць тому

    You are a saviour man, thnak you!

  • @joshdionio1075
    @joshdionio1075 Місяць тому

    i dont know but i think i watched your laravel sanctum videos but im still getting 419 errordamn

  • @ericrojas3385
    @ericrojas3385 Місяць тому

    Oh man thanks a lot!!. I had already given up on Sanctum and was going to replace it with jwt or bearer tokens until I saw your video. You're the best!!

  • @Hassam-deno
    @Hassam-deno Місяць тому

    Today i completed this tasks, and learned how to use v-bind. Thanks, guy!

  • @trispretty
    @trispretty Місяць тому

    I don't get how you can build an API... Where you're using postman or similar. You're not coming from a server, just a desktop app .. what does the server/VM running the API think the referer is? There's no website making the request... Just an app. Really confuses me

    • @cdruc
      @cdruc Місяць тому

      you add the referer header yourself: Laravel Sanctum and Postman ua-cam.com/video/My61OicxPRo/v-deo.html

  • @monjuaflame8329
    @monjuaflame8329 Місяць тому

    💘 awesome

  • @iam.masoudsamimi
    @iam.masoudsamimi Місяць тому

    The "CSRF Missmatch" is mostly the combination of scripts and version problems. I have tested "axios" version 1.1.3 working with Laravel 9, 10, 11 all fine. I have tested "axios" vesrion 1.5.1 working with Laravel 9 & 10 but failing with 11. I have tested "axios" version above 1.6 and failing with Laravel 9, 10 & 11. Can anyone else test and report?

  • @umahatokula9586
    @umahatokula9586 Місяць тому

    Can this be used for Google authentication on mobile app?

  • @yordicartagena209
    @yordicartagena209 Місяць тому

    I try to do this but it always execute what it is in the clousure

  • @amir_2mi
    @amir_2mi Місяць тому

    In that matter there is no difference between browser side cookie vs local storage, the general best practice is to store it as "HttpOnly" server-side, but I do not see that when client and backend are separately developed.

  • @Steliosgiannatos
    @Steliosgiannatos 2 місяці тому

    Learning go as my 3rd language. I did not you can parse json that way. Thanks a lot for the very interesting project.

  • @RobertDam
    @RobertDam 2 місяці тому

    Maybe you can make a nice tutorial of laravel reverb with react native also? Cannot find a lot about it but i am very curious how this works.

  • @fuzzy-02
    @fuzzy-02 2 місяці тому

    Hello, is it possible to use this as reference material? I'm learning Go and would like to buikd along with you with my own ouch, and am asking to see in case I ever put it in a public repository. (If I ever do, I will naturally leave a link to this video) Thank you!

    • @cdruc
      @cdruc 2 місяці тому

      hey, yeah, use it however you want you can find the code here as well: cdruc.com/go-weather-cli

  • @blankomog
    @blankomog 2 місяці тому

    On my local setup, My SPA is an angular app on app.domain.test:5173 My backend is on domain.test running with laravel herd I have tried everything but the cookie is just not being set in the browser