Laravel 11 JWT Authentication: Secure Login and Registration API [HINDI]

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Welcome to our comprehensive tutorial on implementing JWT Token Authentication for Login and Registration in Laravel 11!
    In this video, you'll learn how to create a secure API for user authentication using JSON Web Tokens (JWT) in Laravel 11. This step-by-step guide will take you through the entire process, from setting up your Laravel project to creating endpoints for user registration and login, and securing your API with JWT.
    What you'll learn in this tutorial:
    Introduction to JWT and Laravel 11:
    Understanding JWT and its benefits for API security.
    Overview of the new features in Laravel 11.
    Setting Up the Laravel Project:
    Installing Laravel 11 via Composer.
    Configuring environment settings.
    Installing and Configuring JWT Authentication:
    Installing the necessary JWT packages.
    Configuring JWT in your Laravel application.
    Creating a registration controller.
    Implementing validation and storing user data securely.
    Generating JWT tokens upon successful registration.
    Building the Login Endpoint:
    Creating a login controller.
    Validating user credentials.
    Generating and returning JWT tokens upon successful login.
    Securing API Routes:
    Middleware configuration for JWT authentication.
    Protecting routes using JWT middleware.
    Testing the API:
    Using Postman to test registration and login endpoints.
    Verifying JWT token generation and validation.
    By the end of this tutorial, you'll have a fully functional JWT-based authentication system for your Laravel 11 application, ensuring your API endpoints are secure and your users' data is protected.
    JWT Token :
    jwt-auth.readt...
    Laravel 11 JWT Authentication: Secure Login and Registration API [HINDI]
    Our Playlists:
    OOP In PHP:
    • OOP - PHP
    Git Full Tutorial
    • GIT Tutorial
    Laravel 9:
    • Laravel 9
    Vue 3 Laravel 9 Tutorial:
    • Vue 3 Laravel 9
    Laravel Testing:
    • Laravel Testing
    Nuxt Js
    • NuxtJS
    Laravel And Vuejs
    • Laravel And Vuejs
    Laravel Notifications:
    • Laravel Notification
    Laravel And React Js
    • Laravel ReactJs
    Laravel Interview Questions And Answers:
    • Laravel Interview Ques...
    Laravel User Management System:
    • Laravel User Managemen...
    Laravel Multi Auth System
    • Laravel Multi Auth System
    Laravel Vue3 GraphQL
    • Laravel Vue 3 GraphQL
    Follow us:
    YoutTube: / ajayyadavexpo
    Instagram: / ajayyadavexpo
    Twitter : / ajayyadavexpo
    Linkedin: / ajayyadavexpo
    Github: github.com/aja...
    Please subscribe to my channel and share the video with your friends.
    #laravel #jwt #jwtoken #laravelPHP #laravelJWT

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

  • @duda-dev
    @duda-dev 24 วันที่ผ่านมา

    Brother, I don't know Hindi at all, but it was helpful , thanks

    • @ajay-yadav
      @ajay-yadav  23 วันที่ผ่านมา

      It's my pleasure

  • @tripelability8310
    @tripelability8310 11 วันที่ผ่านมา

    I have completed your video tutorial and it was successful. Is it possible for me to use the code from watching you for commercial or TH-cam content?

  • @rohan-d2e
    @rohan-d2e 6 หลายเดือนก่อน

    really helpful video, thanks

    • @ajay-yadav
      @ajay-yadav  6 หลายเดือนก่อน

      Glad it was helpful!

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

    best one video😊

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

      thanks

  • @technicalrider6196
    @technicalrider6196 8 หลายเดือนก่อน +2

    Highly recommended pls make ecommerce website with laravel

    • @rayles2609
      @rayles2609 5 หลายเดือนก่อน

      Bagisto is a good alternative for laravel e-commerce if you want

  • @madhavkumarroy948
    @madhavkumarroy948 5 วันที่ผ่านมา

    Mujhe token 1 min bad expired karna h
    Token expired hone ke bad fir se phle wale thoken se nhi hit kr sku

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

    Very informative video.
    Bro also request to you please make the video on convert html to pdf with selectable text (if use js canvas) in laravel or react or with both with background image (if possible with tailwind css). For invoice, certificate etc.

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

      Ok I will try

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

    Thank you sir for my recommendated video. But I have a query If I have multiple users for login then how many time to generate token for each and then copy past token in bear-token fields.

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

    Thank you so much!
    Please make JWT authorization tutorial.

  • @CGTiger-t7z
    @CGTiger-t7z 4 หลายเดือนก่อน

    Hello Bhai,
    Bahut achha video hai apka
    Maine ek SSO server banaya hai using laravel passport
    Lekin mere sare client app session based hai mai kaise SSO implement karu

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

    Assalam-u-Alikum,
    your tutorials are nice and informative,
    i only have one concern. Your video features a secret key which will be given as a response if we are able to authenticate correctly right? when we will be working on front end ofcourse we will be saving this secret key onto our local storage to continue rest of the operations. So the secret key would be exposed if anyone opens dev tools and head over to the localstorage section, he or she could abuse the whole application via postman by externally hitting api's that we programmed using that bearer token that was exposed on front end, how can we tackle a situation like this?

    • @ajay-yadav
      @ajay-yadav  4 หลายเดือนก่อน

      Instead of storing the token in localStorage, you can store it in a cookie with the HttpOnly and Secure flags

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

    Bro, Can we host react auth system hostinger shared hosting? Is it (client side) secure to use?

  • @MoaiedALajwa
    @MoaiedALajwa 2 หลายเดือนก่อน

    Why there is two errors in refresh and factory?

  • @RoyalGirl-f4e
    @RoyalGirl-f4e 7 หลายเดือนก่อน

    Make a video on this topic "laravel 11 push notification firebase "

  • @muhammadfahad4826
    @muhammadfahad4826 6 หลายเดือนก่อน

    Good video, Where is this API Guard defined?

    • @ajay-yadav
      @ajay-yadav  6 หลายเดือนก่อน

      config/auth.php

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

    Please make video on laravel Oauth 2.0 server and integration with IFTTT, or any application

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

    jab token refresh kar diya or new token generate ho gya to me api ko work nahi karna chahiye. This is not working perfectly

  • @ooogabooga5111
    @ooogabooga5111 2 หลายเดือนก่อน

    The problem is that I'm still able to use the JWT even after logout

    • @WEESPlayzZz
      @WEESPlayzZz 2 หลายเดือนก่อน

      Add a logic to laravel auth controller , when logout it delete the token from database

    • @ooogabooga5111
      @ooogabooga5111 2 หลายเดือนก่อน

      @@WEESPlayzZz No no, I realised JWT tokens don't expire. Learn more bro.

    • @WEESPlayzZz
      @WEESPlayzZz 2 หลายเดือนก่อน

      @@ooogabooga5111 yeh I need to learn more am new to this 🙂

    • @WEESPlayzZz
      @WEESPlayzZz 2 หลายเดือนก่อน

      @@ooogabooga5111 do you use twitter or facebook?

  • @NIKHILSCI-t3g
    @NIKHILSCI-t3g 7 หลายเดือนก่อน

    how to use jwt Authentication with mongodb database in laravel 11 ?

  • @skgamer2.027
    @skgamer2.027 8 หลายเดือนก่อน

    livewire ki complete series aa rahi hai nhi

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

    First view ❤

    • @ajay-yadav
      @ajay-yadav  8 หลายเดือนก่อน

      Legend!

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

    😍😍🥰🥰