Using a Laravel REST API with a NuxtJs App

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 49

  • @perfect.stealth
    @perfect.stealth 2 года назад +5

    You guys at Laravel are something special. Thank you for making our lives easier ❤

  • @letslearnwebdev
    @letslearnwebdev 2 года назад +10

    Best combination I've worked with. Thanks for the video. Well explained.

    • @themsaid
      @themsaid 2 года назад +2

      I love Nuxt TBH :)

  • @yamenashraf2495
    @yamenashraf2495 2 года назад +3

    Thank you Mohamed! This is really great. I wanted to point out to asyncData hook which I think is more relevant in this case instead of fetch hook. With asyncData you won't need to initialize data as the returned values are merged to the component's state already and also you won't need to put a loader in every component/page.
    Thanks so much for your time and explanation.

    • @themsaid
      @themsaid 2 года назад +1

      Interesting. I’ll look into that. Thanks 🙂

  •  2 года назад

    Great! Thank you! Mohamed, Please, make videos about e-commerce app with this stack.

  • @yashbarot5248
    @yashbarot5248 2 года назад +1

    Thanks for this super combination. Loved it 🎉

  • @JacquesvanWyk
    @JacquesvanWyk 2 года назад

    Man this is so awesome to see. Want to really thank you for making these videos and those valet tips was awesome did not know about the proxy, probably because I was lazy and did not read docs.

  • @behzodjon
    @behzodjon 2 года назад +4

    Great! Thank you! Please, make videos about laravel+nuxt js

    • @themsaid
      @themsaid 2 года назад +2

      What else do you want to see?

    • @behzodjon
      @behzodjon 2 года назад +1

      @@themsaid e-commerce application, please

    • @persegona77
      @persegona77 2 года назад

      @@themsaid I'd like to see a similar video to what you have here only using Sanctum's Api Tokens instead of the SPA auth. So far, every video I search for uses the SPA auth, which I understand is preferred, but I want to see how it looks when both the backend and the frontend are on different TLDs.

  • @hamidreside
    @hamidreside 2 года назад +2

    tried your setup but still block by cors

  • @shofada
    @shofada 2 года назад +1

    Wowww!! You dit it! That was fast. I am so grateful. 🙏🙏🙏

  • @darkmode404
    @darkmode404 2 года назад +1

    What is the valet alternative for windows local? Is xampp and virtual host okay?

  • @srijay_guitarist
    @srijay_guitarist 9 месяцев назад

    I have a question. What if I want to fetch the posts but API is protected(needs authentication) and the frontend doesn't need user signup or login as it just displays the posts?

  • @EL_PANDA_742
    @EL_PANDA_742 2 года назад +1

    Can I use the Vue app's folder inside Laravel's folder?

    • @daleryanaldover6545
      @daleryanaldover6545 2 года назад

      For context, what he showed here is how to use Nuxtjs as a separate frontend for the ergodnc laravel backend, this way you can push changes with api project without affecting the frontend or change something with frontend and never touch the api. Now you can also make a fresh laravel application with Vue as your view stack instead of Blade. Laravel actually has a first party package called Laravel Jetstream that does the scaffolding for Laravel + Vue + Tailwind stack which gives you authentication out of the box. With this setup you are then required to have your Vue components and scripts within your laravel project.

  • @dev_jeongdaeri
    @dev_jeongdaeri 2 года назад +2

    Great content👍👍

  • @Paltibenlaish
    @Paltibenlaish 2 года назад

    it's missing how to redirect when you login and redirects you to the previous page you wanted to visit

  • @pradeepspace3
    @pradeepspace3 2 года назад +1

    Very nice explanation !

    • @themsaid
      @themsaid 2 года назад

      Glad you like it :)

  • @networkerbowofade8477
    @networkerbowofade8477 Год назад

    We have nuxt3, does this tutorial applicable to nuxt3, or is there any chnages

  • @crodrigor
    @crodrigor Год назад

    how config pm2 with laravel for using ssr?

  • @jonice4229
    @jonice4229 2 года назад

    thanks, how do you deploy this project on live?

  • @swatantra0
    @swatantra0 2 года назад

    will you please make a video for authentication laravel passport and nuxt js please

  • @mdrifatkhan2381
    @mdrifatkhan2381 Год назад

    nyc

  • @1boompje
    @1boompje 2 года назад +1

    Thank you!

  • @AneesKhan-uz4mz
    @AneesKhan-uz4mz 2 года назад +2

    now how about doing with inertia?

  • @eslamabdallahabass5662
    @eslamabdallahabass5662 Год назад

    this doesn't work with nuxt3

  • @md.mehedihasan800
    @md.mehedihasan800 2 года назад +2

    Please create a Laravel Price Fielder project where I can filter the product price. I can change the color filter size filter through the check box. There is no such project on RUclips yet.

    • @perfect.stealth
      @perfect.stealth 2 года назад +1

      I think you're missing the point here. He's not here to teach you Vue. He wants to showcase how easy the frameworks can work together.
      You should learn basic Vue bro. Then your price filter will be a walk in the park.

  • @abdurrahman710
    @abdurrahman710 2 года назад +1

    Nice videos!

    • @themsaid
      @themsaid 2 года назад +1

      Glad you like it :)

  • @GergelyCsermely
    @GergelyCsermely 2 года назад +1

    Thanks

  • @nabeelyousafpasha
    @nabeelyousafpasha 2 года назад +1

    Respect from Pakistan 🇵🇰

  • @muhammadyasir7015
    @muhammadyasir7015 2 года назад +1

    After running the valet proxy commands now my "api.todoapp.test" and "app.todoapp.test" both are pointing to the nuxt app and nuxt app is beig opened when I hit both of these URLs. Anyone know the issue?

  • @vodacbao
    @vodacbao 2 года назад

    like

  • @marufjonyoqubov7950
    @marufjonyoqubov7950 2 года назад +1

    Great

  • @mityukov
    @mityukov 2 года назад

    A question: if i want a multitenant app (acc1.ergo.test, acc2.ergo.test, etc) - what should be in the sanctum-stateful-domains?

    • @daleryanaldover6545
      @daleryanaldover6545 2 года назад

      Do it like this: SANCTUM_STATEFUL_DOMAINS=.ergo.test
      This is discussed on the laravel Sanctum documentation at CORS and COOKIE section

  • @anbuselvanrocky
    @anbuselvanrocky 2 года назад

    What suppose, i want my frontend (lets say, vue) on same domain and I'll be using that backend(laravel) API for mobile app? Need to configure separately for mobile & other platform for accessing apis?

  • @vokalout
    @vokalout 2 года назад

    Have you heard of quasar? Can you make a video for it and laravel, with auth, etc?
    Thanks

  • @enterusername7746
    @enterusername7746 2 года назад

    A framework for a framework? I think I need a framework for that.

    • @themsaid
      @themsaid 2 года назад

      It's called a "Meta Framework" :D

  • @maflones
    @maflones 2 года назад +1

    I wish you could learn the language, because you are unwatchable. You have a voice best suited for the silent movies.

    • @daleryanaldover6545
      @daleryanaldover6545 2 года назад

      I've watched several of his videos and it is not that bad. Better yet use earphones if it's not loud enough.