Axios setup for Laravel API requests

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 16

  • @holakonoob
    @holakonoob Рік тому +4

    May I know when the Sanctum course will be available?

    • @cdruc
      @cdruc  Рік тому +4

      Hey! I have no release date in mind.
      I don't want to pressure myself and come up with a rushed version that isn't truly great.
      Thanks for the interest though! Make sure you're subscribed to the e-mail list and you'll be the first one to know when it comes out 👊

  • @adrianduarte8769
    @adrianduarte8769 4 місяці тому

    Brilliant!!!
    One question please, I searched all the forums but I couldn't find the answer.
    How can I capture or prevent those errors that have an x ​​on the left, those that begin with GET, POST from LoginView.vue:16 from appearing in the console?
    I am working with Angular.

  • @luis96xd
    @luis96xd 3 місяці тому

    Amazing video and blog post! Thanks! I have a doubt, in Laravel and sanctum we need an access token to all requests, how can we add that token to this axios client? I'm trying to use interceptors, an returns the token, but all the requests return Unauthtenticated, how can we accomplish that?

  • @mon_codes
    @mon_codes Рік тому +1

    been waiting for this

  • @FatwaLinovera
    @FatwaLinovera 10 місяців тому +1

    love it, this is great quality video

  • @munandisichali605
    @munandisichali605 Рік тому

    Your tutorials are so good, can we have a longer course so that we can follow
    properly

  • @simod.4581
    @simod.4581 Рік тому

    Can i ask you please ?🙏, so im working on exactly this part except im using nextjs, and i wanted to define axios interceptors for the requests, inside it i checked if the path is different from "/login", if so i want to check if the x-xsrf-token header exists in config.headers with the following code: if("X-XSRF-TOKEN" in config.headers), but it seems that even when im logged in and i get the user it always returns false, when i console log the config.headers it shows that the header exists but when i try with the condition it return false.
    Any tips or idea that can help me please 🙏

  • @powerclonic
    @powerclonic 4 місяці тому

    thanks!!

  • @shaneshrestha7654
    @shaneshrestha7654 Рік тому

    Could you provide vscode theme link? Thanks

  • @soy-luisarrieta
    @soy-luisarrieta 8 місяців тому

    Amazing

  • @jc0164
    @jc0164 Рік тому

    yessssssssssssss !!!!

  • @АлександрЮрковский-ж4ы

    thanks for the video! Please, can you provide name of theme?

    • @cdruc
      @cdruc  Рік тому

      you're welcome
      theme is night owl

    • @shaneshrestha7654
      @shaneshrestha7654 Рік тому

      Could you provide link ?

    • @cdruc
      @cdruc  Рік тому

      marketplace.visualstudio.com/items?itemName=sdras.night-owl@@shaneshrestha7654