Download the PHP package codewithdennis/filament-factory-action without Composer
On this page you can find all versions of the php package codewithdennis/filament-factory-action. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codewithdennis/filament-factory-action
More information about codewithdennis/filament-factory-action
Files in codewithdennis/filament-factory-action
Package filament-factory-action
Short Description This plugin adds a new feature to the Filament admin panel table, enabling easy generation of test records for your database tables using your Laravel Factory definitions.
License MIT
Homepage https://github.com/codewithdennis/filament-factory-action
Informations about the package filament-factory-action
Filament Factory Action
This plugin adds a new feature to the Filament admin panel table, enabling easy generation of test records for your database tables using your Laravel Factory definitions.
This plugin extends the standard Filament action, ensuring that you can continue to utilize all the methods that are typically available within the action class
Installation
You can install the package via composer:
Usage Example
Prior to utilizing this action, it is essential to ensure that you have set up a factory for your model.
`
Suppose you already possess a ProfileResource
within the Filament framework. You can integrate the action into the ListProfiles class, as demonstrated in the following example.
You can create/attach relational records with the following example. Just make certain that these models also possess their respective factories
The default behavior is to hide the action in production environments, but you can override this by using your own logic:
Showcase
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- CodeWithDennis
- Adam Weston
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-factory-action with dependencies
filament/tables Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.0