afsakar / filament-form-maker
Form Maker for FilamentPHP
Fund package maintenance!
afsakar
Requires
- php: ^8.1
- filament/filament: ^3.0
- filament/spatie-laravel-media-library-plugin: ^3.4
- ryangjchandler/blade-tabler-icons: ^2.3
- spatie/eloquent-sortable: ^4.0
- spatie/laravel-package-tools: ^1.15.0
- ysfkaya/filament-phone-input: ^3.1
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
Form Maker plugin for FilamentPHP, which allows you to create and manage forms easily.
Installation
You can install the package via composer:
composer require afsakar/filament-form-maker
Form Maker uses Spatie Media Library package. If you haven't published the media table yet, you can publish it with:
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
If you haven't published the notifications table yet, you can publish it with:
php artisan notifications:table
Then finally you need to publish main tables and run the migrations with:
php artisan vendor:publish --tag="filament-form-maker-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-form-maker-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-form-maker-views"
This is the contents of the published config file:
return [ 'extra_collections' => [ // App\Models\User::class => 'User List', ], // TODO: Add extra fields feature 'extra_fields' => [ // 'field_name' => Field::class ], ];
Usage
// Usage
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.