{"repo":"phpsa/filament-authentication","free":true,"listed":false,"github":"https://github.com/phpsa/filament-authentication","clone":"git clone https://github.com/phpsa/filament-authentication.git","description":null,"language":"PHP","stars":128,"topics":["laravel","permissions"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Filament User Authentication User Resource For Filament Admin along with Roles & Permissions using Spatie Package Installation You can install the package via composer: and run the install command this will publish the config file and migrations optionally publish views / translations Spatie Roles & Permissions If you have not yet configured this package it is automatically added by this installer, run the following steps: 1. You should publish the migration and the config/permission.php config file with: 2. Add the Spatie\\Permission\\Traits\\HasRoles trait to your Users model 3. Add Roles & Permissions as required For more see: https://spatie.be/docs/laravel-permission/v6/introduction Setup & Config in your Filament panel file you need to add the following to the Plugins section add the resources You can configure this via either the config file or the plugin. Features 1. Widgets LatestUsersWidget can be added to your dashboard by adding it to your panel widgets area.. Note that it is also attached to the UserPolicy::viewAny policy value if the policy exists 2. Laravel Impersonate If you have not configured this package it is automatically added by this install, run the following steps: 1. Add the trait Lab404\\Impersonate\\Models\\Impersonate to your User model. 2. edit the config file and set impersonate- enabled to true Defining impersonation authorization By default all users can impersonate an user. You need to add the method canImpersonate() to your user model: By default a","default_branch":null,"files":null,"tree":[],"storefront":"/r/phpsa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phpsa/filament-authentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}