Building Secure Multi-Auth Systems in Laravel 11 with Laravel Breeze

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

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

  • @AmitSuyaal
    @AmitSuyaal 9 месяцев назад +3

    I was having trouble in implementing this feature, then I found your video and you know what it worked like a charm.
    Thanks for sharing Sir 🙏

    • @programmingfields
      @programmingfields  9 месяцев назад +1

      Thank you very much for your valuable feedback. Glad it helped you. 🙏🙏

  • @abrahamkamau2282
    @abrahamkamau2282 6 месяцев назад +1

    Wow , A very good detailed and concise explanation . This is the best multi-auth laravel 11 breeze tutorial😊.Thankyou so much!! Please make on roles and permissions using laravel 11. A new subscriber 😊😊❤

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

      @@abrahamkamau2282 Thank you so much for your valuable feedback

  • @M3DIDOfficial
    @M3DIDOfficial 2 месяца назад +1

    Thanks bro its works fine for superadmin and admin, but when i login as normal user going error target class controller for user not work. Any suggestion?

    • @programmingfields
      @programmingfields  2 месяца назад

      @M3DIDOfficial I guess you missed creating controller for the normal user.

  • @mdrazuhossainraj7674
    @mdrazuhossainraj7674 3 месяца назад +1

    Very Nice , Informative and Easy to understand . thank you so much

  • @yusufwibiono232
    @yusufwibiono232 7 дней назад +1

    I got an error on Class "illuminate\Support\Facades\Auth" not found even though I have added that namespace
    please help me

    • @programmingfields
      @programmingfields  6 дней назад

      @yusufwibiono232 Make sure you're using the correct namespace:
      use Illuminate\Support\Facades\Auth;
      f it's correct but still not working, try running:
      composer dump-autoload

  • @codingwithjoe
    @codingwithjoe 5 месяцев назад +1

    very straight forward and well explained, i love it

  • @asyrafilhuda4223
    @asyrafilhuda4223 6 месяцев назад +1

    Thank you for your knowledge bro, it really helped me.
    greetings from Indonesia🙏

  • @mohamedriyasdeen.a886
    @mohamedriyasdeen.a886 2 месяца назад +1

    Superb .. bro .. Ur Explaination is very Good.

  • @kevinmahendra3691
    @kevinmahendra3691 6 месяцев назад +3

    Good Explanation 👍

  • @3rdworldP
    @3rdworldP 2 месяца назад +1

    Took me hour to finish it, well explained I took the notes I will execure it after a while and update here if it worked or not....

  • @kbdschool
    @kbdschool 3 месяца назад +1

    Thank You Man!

  • @Gift-op6mq
    @Gift-op6mq 7 месяцев назад +1

    What about using the same admin section for the admin and super admin. But set role and permissions to what they can access and perform. Like the super admin can create new admin account from the admin section. But the normal admin account can not see the view and not be able to perform same action

    • @programmingfields
      @programmingfields  7 месяцев назад +2

      Yes we can achieve this by defining permissions for every role. Then based on the role and permission you can perform the required operations. Very soon I will make a separate video on Roles and Permissions.

    • @Gift-op6mq
      @Gift-op6mq 7 месяцев назад +1

      @@programmingfields thanks so much. I will be grateful if you do so. Hopefully soonest

    • @programmingfields
      @programmingfields  7 месяцев назад

      @@Gift-op6mq you're welcome

  • @vinnnduri7509
    @vinnnduri7509 3 месяца назад +2

    For ease of importing classes, install the Namespace Resolver extension

  • @GianGamingMLBB
    @GianGamingMLBB 9 месяцев назад +1

    Could you create a tutorial on how to create roles and permissions that are saved in a database? You can add permissions to a table, and those are the only ones you'll see in the UI. It's like each user role's access is driven by the database.

    • @programmingfields
      @programmingfields  9 месяцев назад +1

      Thank you very much for your valuable feedback and suggestions for the video. Definitely will make a separate video on it. ☺️

  • @nasko235679
    @nasko235679 6 месяцев назад +1

    Aren't gates/policies the preferred way to go when creating authorization in laravel? The middleware way you did it obviously work as well but I think their docs pretty much recommend policies for any medium/large sized projects.

    • @programmingfields
      @programmingfields  6 месяцев назад +1

      @@nasko235679 Yes, that is also recommended. The choice is yours, either use middlewares or gate/policies

  • @tanmayapatra3001
    @tanmayapatra3001 2 месяца назад +1

    For Such kind of flow, always use Middleware. Its easy to manage.

  • @Mahisir2001
    @Mahisir2001 9 месяцев назад +3

    This video help me lots

  • @rama_lefthanded
    @rama_lefthanded 7 месяцев назад +1

    make a videos for multi-auth using spatie role and permissions using CRUD ? can add permissions using crud, please

    • @programmingfields
      @programmingfields  7 месяцев назад

      Thank you for your suggestion. Yes, very soon I will make a series on these all functionalities.

  • @jorensumagang3533
    @jorensumagang3533 8 месяцев назад +2

    is this the best practice sir?

    • @programmingfields
      @programmingfields  8 месяцев назад +2

      This is one of the way to manage multiple authentication using a single users table. However there is one more way by creating multiple tables just like users, admins, and other user roles. Thereafter you will have to update the auth guards respectively. Very soon I will upload that video as well.

  • @mohammadardhisaalrasyid_mi6512
    @mohammadardhisaalrasyid_mi6512 8 месяцев назад +1

    thanks sir u solve my problem

  • @freeEgyptian
    @freeEgyptian 7 месяцев назад +1

    thanks bro

  • @BOUTELISMOUSSAAB
    @BOUTELISMOUSSAAB 8 месяцев назад +1

    Thank u

  • @abdkabirneami7914
    @abdkabirneami7914 9 месяцев назад +2

    Up

  • @codeishard3182
    @codeishard3182 Месяц назад +1

    not good.... how do you handle the registeration on diffrenet role