Download the PHP package mortezamasumi/fb-user without Composer
On this page you can find all versions of the php package mortezamasumi/fb-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mortezamasumi/fb-user
More information about mortezamasumi/fb-user
Files in mortezamasumi/fb-user
Package fb-user
Short Description User model, migrations and a Filament resource for Laravel.
License MIT
Homepage https://github.com/mortezamasumi/fb-user
Informations about the package fb-user
FB User — User Management for Filament
A Filament panel plugin that provides a user model, migrations and a complete UserResource (list, create, edit, import and export) for Laravel applications.
Features
- User resource — full CRUD with a sortable, filterable table and role support
- Cascade operations — keep related records (e.g. students, nurses) in sync when a user is deleted, force-deleted or restored
- Role-based visibility — super-admins see all users; non-super-admins only see users without a role
- Scheduled cleanup — an hourly job removes users that have been unattended for a configurable number of hours
- Import & export — CSV import (with role assignment and gender/date handling) and export built on Filament actions
- No-role widget — an optional dashboard widget that renders when the authenticated user has no role
- Localized — ships English and Persian translations
Installation
Publish and run the migrations:
Add the plugin to your Filament panel provider:
Configuration
Publish the config file:
| Key | Default | Description |
|---|---|---|
remove_unattend_user_hours |
48 |
Hours after which unattended users are removed by the hourly job |
default_users_list_filter |
all |
Initial active filter state on the users list (all or active) |
navigation.* |
— | Filament navigation label, group, icon and sort options for the resource |
Usage
The User model
The package ships an abstract Mortezamasumi\FbUser\Models\User base model. Extend it in your application so the resource and auth guard share one class:
Cascade operations
The HasCascadeOperation trait lets a model keep its relations in sync with role changes:
Scheduled cleanup
The RemoveUnAttendUsers job runs hourly and deletes users inactive for remove_unattend_user_hours. No extra setup is required once the plugin is registered.
Support policy
| PHP | Laravel |
|---|---|
| 8.3 | 12 |
Testing
The suite covers the resource pages (list, create, edit, delete, restore, force delete, bulk actions), filtering, import/export and the cascade operations against an in-memory SQLite database.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover a security vulnerability, please review our security policy on how to report it.
Changelog
Please see CHANGELOG for recent changes.
License
The MIT License (MIT). See LICENSE.md for details.
All versions of fb-user with dependencies
filament/filament Version ^5.0
mortezamasumi/fb-auth Version ^5.0
mortezamasumi/fb-essentials Version ^5.0
mortezamasumi/fb-profile Version ^5.0
spatie/laravel-package-tools Version ^1.0