Part 3/3 - How to use Roles and Permissions to protect routes with middleware in Laravel 10

Sdílet
Vložit
  • čas přidán 7. 02. 2024
  • In this video, we will see how to use these Roles and Permissions to manage and protect the routes in the Laravel application.
    So basically, protecting routes means when a user is trying to access a certain route, to which he does not have permission, then we will not allow the user to access that route/page.
    We will be covering Roles & Permission with:-
    Route group middleware.
    Middleware via Route.
    Middleware via Controller.
    How to use Custom created Middleware for roles and permission.
    Blade Directives.
    Blog post about Spatie user roles and permission: www.fundaofwebit.com/post/lar...
    Laravel 10 Spatie User Roles & Permissions tutorial from Scratch
    Part 1 - • Part 1/3: How to Insta...
    Part 2 - • Part 2/3 - Roles & per...
    Part 3 - • Part 3/3 - How to use ...
    Follow us on Instagram: / funda_of_web_it
    Subscribe to my Hindi/Urdu Channel: / fundaofwebithindi
  • Věda a technologie

Komentáře • 25

  • @Radiosabines
    @Radiosabines Před 2 měsíci

    Sir, thank you , for all 3 videos, right now i understood how apply roles & permission in my Laravel 11 App

  • @amitramteke8710
    @amitramteke8710 Před 4 měsíci +1

    Thank you for easy & detailed explanation

  • @Dreams_On_the_way
    @Dreams_On_the_way Před 2 měsíci

    Thank you sir, It's helps alot.

  • @MukeshKumar-pd6yv
    @MukeshKumar-pd6yv Před 5 měsíci +1

    It's amazing video, great Sir

  • @programing97
    @programing97 Před 3 měsíci

    Thank you, my friend. We hope that you will build a commercial website for purchasing that includes a seller, a main supervisor, and a customer. Thank you again

  • @meeee884
    @meeee884 Před 5 měsíci +3

    Now make a powerful e-commerce website sir with laravel 10

    • @expertshooter9330
      @expertshooter9330 Před 5 měsíci +2

      he already made it and I already completed it with my own extra features...
      This man is a dimond... I learnt a lot of from him...

  • @johnston777
    @johnston777 Před 3 měsíci

    dear sir, i have a case, user have super-admin role which have all permissions, and the second role is normal admin which don't have permission to update user. the user can see the edit button, but can't access it, does the role conflict each other? how to solve it?
    @can('update user')
    Edit
    @endcan

  • @user-vo4wn7ph4d
    @user-vo4wn7ph4d Před 5 měsíci +1

    great bro

  • @user-bm8fe3tq4p
    @user-bm8fe3tq4p Před 3 měsíci +1

    Hi sir, Thank you for uploading such a worthy series. Can you please upload a video on stripe payment integration just like you did for paypal?? It will be very helpful for my FYP. Kindly help me in this regard.

  • @user-bv3ze5tm6r
    @user-bv3ze5tm6r Před 4 měsíci

    hello sir, how do you get the login user page? mine doesn't show it. have you added it before the vid?

    • @FundaOfWebIT
      @FundaOfWebIT  Před 4 měsíci

      Login page is coming after installing the Laravel Breeze package - as i have taught here : czcams.com/video/myS8AsjHSoQ/video.html

  • @user-yp9gx1cw6b
    @user-yp9gx1cw6b Před 4 měsíci

    can you make a video showing how i can log user activities

  • @HaiderTeacher-ln7ex
    @HaiderTeacher-ln7ex Před 2 měsíci

    how to use it in laravel 11

  • @Web-abhi-coder
    @Web-abhi-coder Před 4 měsíci

    sir i wach your playlist make a blog website using php and msql ,this video is super and easy to undstand,please make a maintenance mode with website. please sir this is my humble request.🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @alonegamer8109
    @alonegamer8109 Před 3 měsíci

    i have a challenge for you. can you do make a video on dynamic form creation ? where a user is given a form and on that form's basis the user can create a table and also insert data into it. the first form creates a second form for user to enter the details inside it. can you do this ? i can not find this on whole internet. even ai is not able to do this. it is only able to let user create a table and insert data. if you can do this i would really be damned. i have seen the form myself on a website which i can not discuss here.

  • @sallemihabib8637
    @sallemihabib8637 Před 4 měsíci

    please make a video of the team multy-teancy package

  • @manishkushwaha-je6xy
    @manishkushwaha-je6xy Před 3 měsíci

    Please make other videos sir.

  • @tareq-uy2nb
    @tareq-uy2nb Před 4 měsíci

    It is better to have php and mysql and only bootstrap 👍

  • @dsdgaming2242
    @dsdgaming2242 Před 3 měsíci

    Great Tutorial Sir. Is there any github for this tutorial sir?

    • @FundaOfWebIT
      @FundaOfWebIT  Před 3 měsíci

      Here's the link : www.fundaofwebit.com/post/laravel-10-spatie-user-roles-and-permissions-tutorial

    • @dsdgaming2242
      @dsdgaming2242 Před 3 měsíci +1

      @@FundaOfWebIT Thank You sir. You've been a great help. You're awesome, thank you for your hard work ♥️

  • @ammadmaddy
    @ammadmaddy Před 2 měsíci

    that's not the dynamic approach. If user want to give/take access directly using the UI. It won't work because you are assigning the roles statically in routes using middleware.

    • @FundaOfWebIT
      @FundaOfWebIT  Před 2 měsíci

      In this video with the shown demo, the dynamic is not required and not satisfied.
      If want the dynamic approach, then you have to develop such scenario/module so you can handle it inside your controller for the roles or permission with Authorization & Gates.