Laravel Breeze API & NextJS SPA Authentication - Breeze Next Demo

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 45

  • @Zubbee
    @Zubbee 3 หลายเดือนก่อน +1

    Hi Gio. After spending sometime looking at Next.js I'm back here. I'm finding this very useful. pairing Next.js and Laravel. Thanks Gio. I'm still soaking up your content. Cheers

  • @AliAbbas-si2oo
    @AliAbbas-si2oo 8 หลายเดือนก่อน

    Your way of explaining the code is amazing 👍

    • @ProgramWithGio
      @ProgramWithGio  8 หลายเดือนก่อน +1

      Glad to hear, thank you

  • @RafaelCeballo
    @RafaelCeballo ปีที่แล้ว

    Great video as always! I wish you did a full application. I'm struggling to figure out how to protect routes.

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว +1

      Thank you, I'll be doing more Laravel content soon so I'll take this into consideration

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 2 ปีที่แล้ว

    Hey Gio, looking forward to this your php series is fantastic by the way.
    Not sure why but using Taylor's breeze-next if you try to access the dashboard without logging in you can see it for a brief second before getting redirected back to the login page.

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +3

      Thank you. Check out my NextJS + Laravel Sanctum video, I talk about that flickering there & how to fix it, though it uses the older version of NextJS but the idea should be same

  • @md.saimunhossain9867
    @md.saimunhossain9867 2 ปีที่แล้ว +4

    Great content Gio. Please make tutorial on Spatie role permission using Laravel with next js. 🙏🙏

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +3

      Thank you. Good suggestion, added to list of topics 👍

    • @almahdiutshob
      @almahdiutshob 2 ปีที่แล้ว

      +1

    • @SilindokuhleMapiyeye
      @SilindokuhleMapiyeye 4 หลายเดือนก่อน

      @@ProgramWithGio please do share a link if its available

  • @marcinmaj3609
    @marcinmaj3609 2 ปีที่แล้ว +3

    Maybe course with next and laravel? Roles permissions it will be great🤩

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +3

      Good suggestion. Added to the list of topics 👍

  • @mamdouhzaq
    @mamdouhzaq 2 ปีที่แล้ว +1

    Thanks Gio

  • @clydearellano7702
    @clydearellano7702 2 ปีที่แล้ว +2

    Thanks for the content

  • @Zubbee
    @Zubbee 2 ปีที่แล้ว

    Oh wow. I really wish you had included install a fresh laravel application. I'll try and figure it out. Nginx is already mapped port 80:8000. So what am I changing in the laravel when I change it to Port 8000? Hmmm. This will be a challenge SHMG!

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      I think we spoke about this on Twitter, this is not part of the PHP series, its a separate video, so it does not follow the same structure 👍

    • @Zubbee
      @Zubbee 2 ปีที่แล้ว

      @@ProgramWithGio yes we did. Thanks alot for the redirection.

  • @TiagoPHP
    @TiagoPHP 2 ปีที่แล้ว

    thank you so much

  • @thanakornboy1129
    @thanakornboy1129 2 ปีที่แล้ว

    Thank you . Please make tutorial on laradock 🙏🙏🙏.

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      I don't use Laradock, but I do have a lesson on setting up PHP with Docker in my PHP series

  • @anushka4027
    @anushka4027 2 ปีที่แล้ว +1

    Hey, thank you for this! It is really useful.
    Are you open to sponsorships? I would love to sponsor some of your content!

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว +1

      Hello & thank you 🙏. What sort of sponsorship did you have in mind? You can DM me on Twitter.

    • @anushka4027
      @anushka4027 2 ปีที่แล้ว +1

      @@ProgramWithGio Sure!

  • @thomasvink6383
    @thomasvink6383 ปีที่แล้ว

    Great video!
    But when I try to register I get this error:
    Unhandled Runtime Error
    Error: Network Error
    Call Stack
    createError
    node_modules\axios\lib\core\createError.js (16:0)
    XMLHttpRequest.handleError
    node_modules\axios\lib\adapters\xhr.js (99:0)
    Not sure how to fix this.

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      Thank you. Could be related to your front-end configuration. Hard to say without debugging/seeing the full code & error

    • @thomasvink6383
      @thomasvink6383 ปีที่แล้ว

      @@ProgramWithGio Yep sorry already found it. Made a typo myself Lolz...Thanks again for the great video.

  • @GuruAgent
    @GuruAgent ปีที่แล้ว

    Hi, I'm junior in IT web-devolper and my English so bad, but I installed how you and all working, but can't render to dashbord. Error: Request failed with status code 401, but user -> created in databases. Sorry for my English

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      Hey, most likely a misconfiguration. I cant really help you without seeing your code, 401 can be caused by various things but it essentially means it cant authenticate the user, could be due to nextjs misconfiguration (making request wrongly), can be due to Laravel misconfiguration.

  • @SilindokuhleMapiyeye
    @SilindokuhleMapiyeye 4 หลายเดือนก่อน

    Hi i managed to run the project locally and its running fine, now I deployed my laravel breeze API project on laravel vapor and used amplify for next.js frontend, everything is fine but I'm getting this error message: 419 {
    "message": "CSRF token mismatch."
    } can you please assist I tried redeploying it more than 3 times but still get the same error

    • @ProgramWithGio
      @ProgramWithGio  4 หลายเดือนก่อน

      I havent used laravel vapor & amplify so I can't really help with that. You could post in laravel discord or laracasts

  • @SabaMadadinia
    @SabaMadadinia 8 หลายเดือนก่อน

    My access_tokens table is empty and I think it is because sanctum token is not active. Can you help me how to activate it?

    • @ProgramWithGio
      @ProgramWithGio  7 หลายเดือนก่อน

      I don't think I can help with that at this time unfortunately

  • @SabaMadadinia
    @SabaMadadinia 8 หลายเดือนก่อน

    I want the user to not be able to enter the dashboard after registration and need to confirm the email to enter

    • @ProgramWithGio
      @ProgramWithGio  7 หลายเดือนก่อน

      It can be implemented, there are many articles & guides on how to do it

  • @madanmalhotra
    @madanmalhotra 2 ปีที่แล้ว

    How much possible to code it without pull git repo NEXT JS, it will better to code line by line in NEXTJS

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      I don't think I understand the concern or question.

  • @devope
    @devope 2 ปีที่แล้ว

    Use localhost in your browser, otherwise you will get an error on ajax request.

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      Not sure what you mean. I used localhost in browser. If you mean the port, NextJS runs on port 3000 so have to add that. Ajax requests work fine as well as you saw I registered user & logged in at the end.

  • @RabinShrestha-s2o
    @RabinShrestha-s2o ปีที่แล้ว

    I tried to change backend url to next-backend.test as I am using laragon, breeze-next application wont function