Laravel 10 REST API development with JWT. Part Two: Registration and Login endpoint

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

КОМЕНТАРІ • 16

  • @Pagani0123
    @Pagani0123 9 місяців тому +1

    Thank you, you helped me a lot. I'm brazilian, I don't speak english very well, but I understood your video. Thanks.

    • @wisdomdiala
      @wisdomdiala  9 місяців тому

      Thanks for the feedback, you can also help by subscribing and liking the video.

  • @ameyoagbagba7023
    @ameyoagbagba7023 8 місяців тому

    Thank you very much for these lessons... it would be great if you made a video on the logout method and how to consume this api via an angular front..Be blessed.Thanks

  • @rikudola-9458
    @rikudola-9458 6 місяців тому +1

    Hi, i was wondering what vs code extension are you using that allows you to auto import modules, like here in 12:00.

    • @wisdomdiala
      @wisdomdiala  5 місяців тому

      You can use PHP companion extension

  • @gilbertorogel81
    @gilbertorogel81 5 місяців тому +1

    at 16:42 access_token is null, im using laravel 11.6.0, not sure why this line
    $token = auth()->login($user)
    says that login() returns void
    Any help apreciated

    • @wisdomdiala
      @wisdomdiala  5 місяців тому

      Can I see your code snipped?

    • @gilbertorogel81
      @gilbertorogel81 5 місяців тому

      @@wisdomdiala Tyvm for the reply, i fixed the issue by changing the defaults array in api/config/auth.php:
      'defaults' => [
      'guard' => 'api',
      'passwords' => 'users',
      ]

  • @m4rkbello
    @m4rkbello 7 місяців тому

    Thankyou so much man!

  • @gilbertorogel81
    @gilbertorogel81 5 місяців тому

    at 10:40 i get response 419 unknown status : "message": "CSRF token mismatch.", help pls

    • @gilbertorogel81
      @gilbertorogel81 5 місяців тому

      fixed it by adding the route to $except array in VerifyCsrfToken.php :D
      in laravel framework 11.6.0 the VerifyCsrfToken.php file is in the route-> vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/

    • @wisdomdiala
      @wisdomdiala  5 місяців тому +1

      Did you include the api prefix to your endpoint?

    • @gilbertorogel81
      @gilbertorogel81 5 місяців тому

      @@wisdomdiala I dont remember what was the issue but i've fixed it, thank you for replying tho :)