Laravel 11 Multi Auth: Admin, Teacher, and User | Implement Multiple Authentication Guards

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • In this comprehensive tutorial, we'll guide you through setting up a multi-authentication system in Laravel 11. Learn how to implement custom admin and teacher guards, complete with separate login and register pages for each role. Discover how to create distinct dashboards for each user type, ensuring a smooth and secure user experience.
    We'll walk you through the entire process, from setting up the authentication guards to creating individualized routes and views for admins and teachers. By the end of this video, you'll have a strong understanding of how to effectively manage different user roles and permissions within your Laravel 11 application.
    Whether you're a beginner or an experienced developer, this tutorial offers valuable insights and practical tips for building a robust and scalable multi-auth system. Don't miss out on this essential guide to mastering Laravel 11's advanced authentication features!
    Laravel 11 Multi Auth: Admin, Teacher, and User | Implement Multiple Authentication Guards
    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...
    GitHub Project (Download)
    github.com/aja...
    Please subscribe to my channel and share the video with your friends.
    #laravel #laravel11 #laravel11multiauth #laravel11tutorial

КОМЕНТАРІ • 34

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

    which extensions do you use? please suggest.

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

    Hello sir. guard-based authentication and role-based which one is best to use?

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

    @ajay-yadav Hello Sir, Thanks for the new knowledge, I expecting that on jetstream and blade, here got some issue Logged in admin/dashboard When type the url admin/login redirect to /login,When user logged out admin also logged out.

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

      i am having the same issue, did you solved it?

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

    Thank you bro for making video on my request. Can we make single login Page for all.
    You have experience of IT industry so I request you please make video on school management system. How does work on a such type real world Project.

    • @danish-rg4px
      @danish-rg4px 5 місяців тому

      Yes if possible please make video on that

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

    sir, can you make content on API based multi auth ?

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

    I followed your videos and get an error. If I login admin and user at once then try to logout from any of one, both user and admin are going logged out. How can I fix it please!

    • @ajay-yadav
      @ajay-yadav  4 місяці тому +1

      try this Auth::guard('admin')->logout();

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

      I tried this, but the problem was session storing. So I store with different name for both user and admin and when logged out forget only one session, not all. Thanks again.

    • @sohilshrestha3089
      @sohilshrestha3089 2 місяці тому +1

      did you find the solution for this
      if yes please help me

    • @MDARH
      @MDARH 2 місяці тому

      @@sohilshrestha3089 Yes, I got the solution. How can I help you?

  • @junaidwaqas6448
    @junaidwaqas6448 2 місяці тому

    I see you solution is simple and easy. kinldy a video make on securty headers layer and prevent back history after login page reutrn back to login page or after logout page return back to admin panel. It work in laravel 9 and 10 but in 11 create problems

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

    Sir interview ke technical round me kya kya puchte he uska video banado na

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

    sir, ak table me role define karke bhi kar sakte hai.. uske upar ak video kar digiye..

  • @heartbeat5673
    @heartbeat5673 8 днів тому

    Aiss me to user bhi teacher ka dashboard access kr skta

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

    mostly in youtube, multi user with role based auth using multi table.

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

    Helpful Content...
    Thanks❤

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

    Please do video about websocket in laravel ❤❤❤😊

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

    Sir redirect sahi nahi kr raha please isme middleware bhi add Karo na

    • @ajay-yadav
      @ajay-yadav  5 місяців тому

      @narend Could you explain that in more detail?

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

      Logged in admin/dashboard When type the url admin/login redirect to /login,When user logged out admin also logged out.

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

      @@future_of_coding yes sir

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

      @@future_of_coding same problem

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

    Sir ek api base project bnao sir larawel me

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

    Thanks sir

  • @RagibRohan-kq6bl
    @RagibRohan-kq6bl 5 місяців тому

    Thank you

  • @skgamer2.027
    @skgamer2.027 5 місяців тому

    thanks ❤

  • @fmt2586
    @fmt2586 4 місяці тому +3

    you just said and did things, never explained why you did it, you copied and bunch of files and deleted a bunch but didn't even explain anything, no logic, i am not here to copy you know, just a criticism.