Login and Registration with React Native and Laravel | Expo | Sanctum

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • Hello everyone,
    In the last video, we saw how to use React Native with Firebase.
    • React Native Login and...
    In this video, we will see how to connect React Native app with Laravel using Laravel API. We will create Login and Registration with Laravel and React Native.
    00:00:00 - Introduction
    00:00:32 - Server Side Considerations
    00:03:10 - Sanctum
    00:05:19 - Helper / Service Class
    00:16:07 - Choosing between api.php and web.php
    00:18:46 - React Native considerations, .env
    00:24:28 - Testing & Debuging Register API, expo device name package
    00:44:30 - Creating Login API
    00:46:45 - Reusing validation function
    00:51:24 - Modifying login component, testing login API
    01:00:10 - Wrap Up
    My Vue 3 Udemy Course
    www.udemy.com/course/vue-3-us...
  • НаукаНаука

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

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

    Thankyou so much.You are so great.I was searching for this video and I finally found it.You explain everything in detail and thanks for that.God bless you , and do more videos like these.

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

    Great job man! Thank you for this tutorial. Now so few videos about laravel+sanctum+react but you did it. Please make similar videos abot this stack!!

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

      Thanks a lot for the kind words. For sure, will do more videos on the same stack :)

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

    which font you use in the editor please tell me? Thank you

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

    Thanks bro, but...
    I have a error because the field "tokenable_id" not change when insert a new token beacuse the tokenable_id value its always the same.
    The error is "Integrity constraint violation: 1048 Column 'tokenable_id' cannot be null..."
    How to fix it?
    Thanks.

  • @keironwaites6799
    @keironwaites6799 Год назад +1

    Good work, however you didn't explain how to store the token and use it to keep the user logged in.

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

    Thank you man Can you please provide the source code if possible??

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

    Nice tutorial !! but can you help me about how to logout after login on react native?

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

      Thanks for the feedback 🙂
      To answer your question, it is pretty simple.
      Step 1.
      Create a Logout Button and onpress run a logout function which clears all the session or data stored locally (user token, user details etc.)
      Step 2. Make an Api call to server in case if any server side actions are required like setting status to not active, deleting sanctum token if required.
      Now if api call is made then step can be written in the then() of the axios of api call.
      After successful logout navigate the user to home screen.
      Hope this helps.

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

      @@WebDevWithArtisan wokeyy thanks broo

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

    Nice....no source code ?

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

      Thanks. Unfortunately, for this video I did not maintain any repo so many apologies I cannot provide the source code.

    • @iren4salazar229
      @iren4salazar229 6 месяцев назад

      @@WebDevWithArtisan huehue

  • @0zankurt
    @0zankurt Год назад

    Source code?

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

    Laravel recommends no longer using Lumen. They suggest using Laravel with Laravel Octane.

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

      That’s right. Lumen is no longer recommended officially by Laravel. Thanks for the mention.

  • @lynic-0091
    @lynic-0091 2 года назад +1

    Please next time EQ those low frequencies out of your voice next time, its extremely annoying to listen to your voice with headphones on

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

      Thanks for the feedback and sorry for the annoyance.

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

    Next time i suggest you to finish project first with no error. After that record a video and rewrite the codes from your finished project. By this way we waste too much time to learn for 20 mins video.

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

      That is the worst way to learn, by him leaving the errors in the videos it allows us to see how he goes about solving them. What if you watch the video and come across an error he edited out then what? You gonna come in the comment asking “ hey bro how do I fix this problem “ but if you watched it with the errors your ass wouldn’t be here asking. Or just fast forward the part you don’t wanna see

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

      @@youngjojo3052 yea thats right but he can pause recording when got error and resume when he find fix. And can show us how did he resolve this…

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

      @@Confickerx I understand where you coming from but I feel like doing it this is some people won’t have to deal with waiting for him to respond to their comments.