Laravel Filament Shield Plugin in multiple panels

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Secure Your Laravel Filament Admin Panel with Roles & Permissions
    This video dives into the Filament Shield plugin, the ultimate tool for managing roles and permissions in your Laravel Filament admin panel.
    Key Features:
    Effortless RBAC (Role-Based Access Control): Control user access to Resources, Pages, Widgets, and custom functionalities using Spatie's Laravel Permission package.
    Intuitive Interface: Manage roles, permissions, and user assignments directly within your Filament admin panel.
    Streamlined Workflow: Generate permissions and policies for your Filament entities with a single command.
    Enhanced Security: Shield your admin panel by granting granular access based on user roles.
    Who Should Watch?
    Laravel developers building secure admin panels with Filament
    Developers seeking a user-friendly RBAC solution for their applications
    Anyone wanting to improve access control in their Laravel projects

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

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

    Laravel Filament Shield Plugin in multiple panels

    • @allanstuartvelezpena5687
      @allanstuartvelezpena5687 3 месяца назад

      Hello, how are you? I'm curious. At the moment I created the version in tenancy but when installing shield it gives me this error.
      The model [Spatie\Permission\Models\Role] does not have a relationship named [team]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [BezhanSalleh\FilamentShield\Resources\RoleResource] resource class.
      At the moment I have deleted the implementation. If you know how to solve it, it would be very good help because I am interested in this plugin. @codewithtonyofficial

  • @tilapotty
    @tilapotty 15 дней назад

    Thank you for your work! One optimisation step at the end of the process: in User.php:
    public function canAccessPanel(Panel $panel): bool
    {
    if($this->hasRole(Utils::getSuperAdminName()))
    {
    return true;
    }
    else if ($panel->getId() === 'blog')
    {
    return $this->hasRole(config('filament-shield.blog_user.name', 'blog_user'));
    }
    return false;
    }

  • @claytonmmbehi
    @claytonmmbehi День назад

    Hi. Wonderful tutorial. I have a question. How do I redirect the blog user to the blog panel when they login via the -> /admin/login route. 2. When I log out via the blog panel. It brings error (Route Login not defined). 3. Blog User Roles does not reflect on the blog panel. Kindly help. Thank you.

  • @user-mn3lq1bz8x
    @user-mn3lq1bz8x 7 дней назад

    Hello sir, can you help me..? i used filament shield, i have 2 roles ( admin and user),
    - As admin, when 1 go to the classroom navigation menu, i will get the list data of all classroom (in this case : index' => Pages\inedexClass::route('/') ,
    - As user, go to the classrooms navigation menu, i will direct to my classroom detail based on my Auth user id (in this case : view' => Pages\ViewClass::route('/{classroom id}/view'),
    - Both admin and user use only 1 navigation classroom
    Any solution..? thanks before..

  • @yacoublearn
    @yacoublearn 3 месяца назад

    Big thanks tony ❤..

  • @yacoublearn
    @yacoublearn 3 месяца назад

    Tony, I followed a tutorial but added more challenges by incorporating multiple panels with different guards, models, and database tables-one for admins and another for users. However, I attempted to make the plugin work for two different authentication models, but it only functions for the admin model, not the user model. Despite my efforts, it's still not working. Could you please create a video demonstrating the steps mentioned above? If you have the time, I'll be eagerly waiting for it. If not, thank you anyway! ❤❤❤❤

  • @tevinmorake8924
    @tevinmorake8924 3 месяца назад

    Interesting! Have you tried using shield with support for filaments "Teams" multi-tenancy?

  • @TheoKotey
    @TheoKotey 3 месяца назад

    I am using multitenancy in my Filament application. However, I need to create team_admin role where they can create and manage users that belong to their team only. How do I do that?

  • @xenon2106
    @xenon2106 3 месяца назад

    lets goo!

  • @arifjagad
    @arifjagad 3 месяца назад

    I have created an employee role, how do I prevent him from being able to open the admin page? At least he will be redirected to the /employee page

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

    🥳🥳🥳🥳🥳🥳🥳

  • @nicolasmenescardi4077
    @nicolasmenescardi4077 3 месяца назад

    🙌🙌

  • @cengizhan597
    @cengizhan597 3 месяца назад

    Is there a video of getting Auth tokens with Filament API

  • @wakathepublic
    @wakathepublic 3 месяца назад

    why my code not working ?

  • @user-hq8lj7eb7h
    @user-hq8lj7eb7h 19 дней назад

    share the source the code as well