Laravel 11 Multiple Authentication | User & Admin | Multi Guard Authentication | PHP Tech Life Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • In this video tutorial, we'll be building a multiple authentication system using Laravel 11. We'll set up separate guards, providers, and middlewares specifically tailored for admin authentication.
    With this multi-auth system, both users and admins will have their own dedicated dashboards. We'll also go through the registration process for users, while for admins, we'll focus solely on the login area. Throughout the tutorial, you'll learn how to create middleware and how to effectively use them. We'll cover concepts like guest middleware and authenticated middleware, giving you a comprehensive understanding of Laravel's authentication mechanisms.
    Please subscribe to my channel and hit the notification bell, so you don’t miss any of my new videos.
    ➡️ bit.ly/PHPTechLife
    Github Link:
    github.com/php...
    Source Code:
    I will share source code in couple of days.
    👇 Let’s connect online:
    📱 Instagram: / mohitsingh_techie
    🐦 Twitter: / phptechlife
    👨🏻‍💻 LinkedIn: / mohitsingh2006
    😄 Facebook: / phptec
    🏷️ Tags:
    #laravel11 #laravel_multi_auth
    ---------------------------------
    About Me:
    I’m Mohit Singh, a senior full-stack web developer with more than a decade of experience. Throughout my career, I’ve developed a broad range of web applications, from simple websites to complex systems. I’m proficient in multiple programming languages and frameworks, and I’m always eager to learn new technologies to enhance my skills.
    As the founder and owner of the PHP Tech Life TH-cam channel, my passion for teaching is at the forefront of everything I do. I created this channel with the goal of helping aspiring web developers learn in Hindi, making web development accessible and enjoyable for everyone.

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

  • @asifali-fc8xt
    @asifali-fc8xt 4 หลายเดือนก่อน +1

    Best lecture with good presentation

  • @Not_Casual_Not_Anymore
    @Not_Casual_Not_Anymore 4 หลายเดือนก่อน +1

    Good Work Buddy , May your Hard Word pays off

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

      Thanks for your kind words.

  • @abacusdotcom
    @abacusdotcom 5 หลายเดือนก่อน +1

    You are the best. Even I speak English, I grabbed every detail discussed. Thanks.

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

      Thanks for your kind words.

  • @usmraf786
    @usmraf786 4 หลายเดือนก่อน +1

    Very good tutorial, Thanks very much Sir

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

    Sir u r doing such a great Job Thank u so much for these amazing tutorials.. Plz make a tutoril series on Point Of sale and inventory management system in laravel 11 Thank u... Love From Pakistan ❤

  • @umarfarooq-mq1to
    @umarfarooq-mq1to 5 หลายเดือนก่อน +1

    Thanks sir you are doing great job

  • @adull3376
    @adull3376 หลายเดือนก่อน +1

    Thank you sir🎉🎉

  • @HassanIdrees-ju2cv
    @HassanIdrees-ju2cv 4 หลายเดือนก่อน +1

    Thanks very much Sir🥰🥰

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

    Thank you Sir g. You are doing a great job...

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

    Keep growing!

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

    Can we have role drop-down in register page and according when individuals goes to login and it redirect to the dash board page of selected role according selected while registering...if so...how can it be done

  • @lingarajbhuvan1404
    @lingarajbhuvan1404 5 หลายเดือนก่อน +1

    good job sir

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

    sir is me ek masla hai me admin ke liye alag login page q banao muje ager user me hi login karna ho admin ko to kase karo job me login karo tu wo user ke dashboard me chala jye or jb me admin ka login password dalo tu wo admin ke dashboard me chala chiye ye kase hoga

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

    Sir i need Urgent reply , agar mujhy ye kam Gate ke through krna ha to wo kesey karunga kiya tab mujhy guard ki zarort nhi parni ?

  • @narend
    @narend 5 หลายเดือนก่อน +1

    Please sir create video for multi auth with multi table

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

    @PHPTechLife Hello Sir thanks for another great tutorial, Looking for spatie authentication and laravel Fortify can you make two tutorial on this topic.

    • @PHPTechLife
      @PHPTechLife  5 หลายเดือนก่อน +1

      Yes, I can try.

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

    laravel Breeze include this all then why we create this ?

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

    Sir customer or admin ko seprate table me add karo na

  • @junaidiqbal5991
    @junaidiqbal5991 3 หลายเดือนก่อน

    How to do it with same with Laravel Breeze? please advice

    • @PHPTechLife
      @PHPTechLife  3 หลายเดือนก่อน

      Need to create a separate video.

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

    Sir agar hame admin ka id and password change karna hoto kya kare please batao muje

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

    Nyce one

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

    Auth guard [admin] is not defined. showing this errer

  • @AbdelrahmanEl.Monshed
    @AbdelrahmanEl.Monshed 4 หลายเดือนก่อน

    hello every one can u mention Admin login controller

  • @sgworld1670
    @sgworld1670 28 วันที่ผ่านมา

    Sir source code kabh karoge update

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

    Hello sir.
    Jab account/login pe admin ko login kra rahe hai to login ho rha hai but admin dashboard pe nahi ja rha page account.dashboard pe hit ho rha hai. Jabki main admin ko admin/login kra hun to admin dashboard open ho rha. Jo ki theek hai but.. Ye possible hai kya sir ya fir bugs error hai pl tell me asap

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

      on account/login, admin can login as a customer

    • @shabnam9519
      @shabnam9519 3 หลายเดือนก่อน

      ​@@PHPTechLife hey how we can stop admin to login as users? Please tell

  • @jprathod16a
    @jprathod16a 3 หลายเดือนก่อน

    "I will share source code in couple of days." i do not understand for source code option i want to source code pl

    • @PHPTechLife
      @PHPTechLife  3 หลายเดือนก่อน

      sorry for inconvenience will add link of source code very soon.

  • @SARIKAGAUTAM-i8e
    @SARIKAGAUTAM-i8e 11 วันที่ผ่านมา

    i need sourcecode

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

    Admin ka id and password kaise change kare

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

    Sir i need your 15min time to solve my issue in laravel. could you please help me out ?

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

      you can message me at insta and I will try to help you.

  • @viralvadera3323
    @viralvadera3323 3 หลายเดือนก่อน

    For two login can't i just:
    if(Auth::attempt(['email' => $request->email,'password' => $request->password])){
    $user = Auth::user();
    if ($user->role == 'admin') {
    return redirect()->route('admin.dashboard');
    } elseif ($user->role == 'user') {
    return redirect()->route('account.dashboard');
    }
    }

    • @PHPTechLife
      @PHPTechLife  3 หลายเดือนก่อน

      Yes, you can follow this.

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

      Try This:
      if(Auth::attempt(['email' => $request->get('email'), 'password' => $request->get('password')]))
      {
      //
      }
      {
      //
      }

  • @tirtho.b
    @tirtho.b 3 หลายเดือนก่อน

    This page isn’t working127.0.0.1 redirected you too many times.
    Try deleting your cookies.
    ERR_TOO_MANY_REDIRECTS
    after 46:15

  • @hwaheed-z7n
    @hwaheed-z7n 2 หลายเดือนก่อน

    hi . please sir share source code. thanks

  • @abhi_84ya
    @abhi_84ya 3 หลายเดือนก่อน

    make a project laravel with jquery ajax

    • @PHPTechLife
      @PHPTechLife  3 หลายเดือนก่อน

      There is already a complete playlist on Laravel where I used ajax.
      th-cam.com/video/C3xNJVtxZEs/w-d-xo.html

  • @kavinkumar8637
    @kavinkumar8637 27 วันที่ผ่านมา

    source code?

  • @Abdullah2588
    @Abdullah2588 3 หลายเดือนก่อน

    where is source code

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

    Sir customer or Admin kabhi same table me nahi hote

    • @PHPTechLife
      @PHPTechLife  5 หลายเดือนก่อน +1

      For different table you can define a different model in providers, please watch the video first. You also can find a video on my channel where I used different table for multi auth.

    • @viralvadera3323
      @viralvadera3323 3 หลายเดือนก่อน

      If you are collecting the same data from both types of users, it is better to have an extra column rather than an entire table.