Full Laravel Spatie Permission Tutorial | Laravel 9 tutorial

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Hello, friends in this video we are going to make an admin panel with laravel permission package from spatie.
    Full Laravel admin panel.
    Hello Friends, in this video we are going to assign roles and permissions to users.
    Laravel Admin Panel.
    Laravel Tutorial.
    Laravel 9 Tutorial.
    Spatie role and permission.
    Laravel permission.
    Github Repo: github.com/laraveller/laravel...
    Support me:
    / laraveller
    paypal.me/TonyXhepa
    Follow me:
    Twitter: / laravellercom
    Facebook Page: / 1laravellercom
    Instagram: / laravellercom
    Github: github.com/laraveller
    Website:
    Playlists:
    Laravel Testing For Beginners: bit.ly/3t1gNq4
    Laravel Roles and Permissions: bit.ly/3gOhM7d
    LARAVEL INERTIA MOVIE APP: bit.ly/3FVMp4Q
    Laravel Livewire Movie App: bit.ly/3s8D6v1
    Laravel Classified Website - bit.ly/3nsFRnb
    Livewire Employees - bit.ly/2ZtIpZY
    Laravel Employees Management - bit.ly/3Gglt14
    Laravel admin panel - bit.ly/3CcX75M
    #laravel #tutorial #laraveller
    TIMESTAMPS
    00:00:00 Setup Project
    00:05:45 Create Role and User Seeder
    00:14:08 Admin Layout
    00:21:13 Add Sidebar
    00:27:44 Create Role Index
    00:35:48 Display Roles
    00:46:20 Create New Role
    00:58:39 Update Role
    01:12:07 Delete Role
    01:24:24 Assign Permissions
    01:42:47 Assign Roles
    01:55:02 Users Index
    02:03:18 User Roles and Permissions

Komentáře • 43

  • @tonyxhepaofficial
    @tonyxhepaofficial  Před 2 lety +11

    Full Laravel Spatie Permission Tutorial | Laravel 9 tutorial

  • @MoAliSensei
    @MoAliSensei Před 2 lety

    Thanks Boss, this has helped me a lot… much appreciated 🙌🏼🙌🏼🙌🏼

  • @rafaelcardosotrentin7644

    Thank you , friend! All the best!

  • @ashisharyal64
    @ashisharyal64 Před 2 lety

    This video brought big smile on my face

  • @dabbey0
    @dabbey0 Před 2 lety

    Thank for video, it's very helpfull.

  • @abdallakaram5376
    @abdallakaram5376 Před 2 lety

    Amazing content ❤️👍

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

    Thank you for your efforts 🎉

  • @ALexAlex-zl5zi
    @ALexAlex-zl5zi Před rokem

    Super! Thanks!)))

  • @santiagoruiz3805
    @santiagoruiz3805 Před rokem +3

    COMO TE AMOOOO!

  • @anujbisht8905
    @anujbisht8905 Před 2 lety

    Thanks sir

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

    How guard_name automatic input web, but in seeder no guard_name

  • @LokeshM
    @LokeshM Před rokem

    How did you create alias a = php artisan? How to do this in my windows VS Code?

  • @mahematics303
    @mahematics303 Před rokem

    i had error wih login i had mention the email and password in admin seeder but they did not gave acces
    so what can i doo if i create new registration so that is not admin so how can i reslove this issue

  • @droneggin
    @droneggin Před rokem +3

    Dear Laraveller, thanks a lot for helpful videos. I have a question. We have implemented LDAP record package, and our company employees can log in into system using their domain credentials without registration. How I can add Spatie roles and permissions for those users with keeping LDAP login mechanism? Is it possible?

    • @user-je4yi5rg8g
      @user-je4yi5rg8g Před 10 měsíci

      This is an excellent question. Did you find any solutions?

  • @jdsatashi3188
    @jdsatashi3188 Před rokem

    Hello, I need support to know how can enable blade to use @role() for VS Code

  • @aakashkhanal4313
    @aakashkhanal4313 Před 2 lety

    Why cannot i assign permission through user when the permission is already assign from roles ?

  • @FlyMoe69
    @FlyMoe69 Před rokem

    When trying to seed the database I'm getting this error: Spatie\Permission\Exceptions\RoleDoesNotExist. There is no role named `admin`.
    Do you know how to fix this? Nothing I've tried has worked.

  • @philiplartey19
    @philiplartey19 Před 2 lety +1

    Hi, Thanks for the great tutorial. How do you implement Auto logout after session timeout?

    • @jonesblackwell7803
      @jonesblackwell7803 Před 2 lety +2

      just add in your html head. the 600 you see is the session timeout in seconds (10 minutes) but the default session timeout for php is 24 minutes so you can calculate.

  • @swapnilcodes
    @swapnilcodes Před 2 lety +5

    Hey thanks for the video. I was exactly looking for this but can we make CAN directive dynamic. I mean super admin create any kind of roles so how can we manage what to show and what to hide on the basis of ROLES ??

    • @HumVishnuSingh
      @HumVishnuSingh Před 2 lety

      Did you find your answer? If yes please share with me I'm also looking for this.

    • @sanchopansa7732
      @sanchopansa7732 Před rokem

      I believe you would have to create a Controllers for that and up there put similar logic like he did in seeders lets say.

    • @khaajugaming7962
      @khaajugaming7962 Před rokem +1

      you will have to use polices or guards for that

  • @user-qj7fz1zl5j
    @user-qj7fz1zl5j Před rokem

    these login and dashbord pages are automatically created or we have to create them manually ? anyone ?

  • @propreeti8sh821
    @propreeti8sh821 Před 2 lety

    hi was trying follow you using to_route() unable showing error please clear details

  • @ehsanraoufi7005
    @ehsanraoufi7005 Před 2 lety

    hello sir thanks for this video i want to add tdd in my project with spatie but when i want to add code and test i get this error
    Class "Spatie\Permission\PermissionRegistrar" not found
    did you have any solution or video for this problem .
    how i gave role to my user in tdd.

    • @olajideomotola9939
      @olajideomotola9939 Před 2 lety

      Check your config/permission.php and service providers files to check if you’re missing this line of code

  • @anujbisht8905
    @anujbisht8905 Před 2 lety

    Can I share my problem related to project through email

  • @vrajpatel7744
    @vrajpatel7744 Před rokem

    Hello sir. which color theme do you use? Great view BTW.🙂

  • @MisbahurRifqi
    @MisbahurRifqi Před 2 lety

    what plugin import package in vscode ?

    • @akar3477
      @akar3477 Před 2 lety

      yes i'm wondering too++

  • @constantine9074
    @constantine9074 Před 10 měsíci

    Nice Job, thnak you

  • @ihwannh8628
    @ihwannh8628 Před rokem

    Master, Thx'u so much for this tutor 🙏🙏🙏 I have problem in user permission, There is no permission named 'admin' for guard 'web'. Please help me, tell me why. Maybe, I did wrong 🙏

    • @NaveedAhmed-xp3nu
      @NaveedAhmed-xp3nu Před rokem

      for Roles and permissions guards should be api your config/auth.php file. And the second most important thing is when you can all seeders in database seeder files sequence should be like this.
      $this->call(PermissionSeeder::class);
      $this->call(RoleSeerder::class);
      $this->call(UserSeeder::class);

  • @ghassanbarghouti1945
    @ghassanbarghouti1945 Před rokem

    Have you tried to make Spatie work with teams? I'm struggling to find a useful tutorial, and not much in the documentation of how we're supposed to use it.

    • @FlyMoe69
      @FlyMoe69 Před rokem

      I'm looking for the same. Where you successful in finding anything about teams?
      I'm getting this error when trying to seed my tables from the documentation: Integrity constraint violation: 1048 Column 'team_id' cannot be null.

  • @LotusSoftPvtLtd
    @LotusSoftPvtLtd Před rokem

    Good tutorial Laraveller. Thanks. I wish you used just bootstrap instead of tailwind css, my wish only, too many class name in tailwind for small thing too.

  • @RealSpeeches
    @RealSpeeches Před rokem

    Sir please tell me hash password