Skip to content

afsakar/filament-form-maker

Repository files navigation

Form Maker plugin for FilamentPHP

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Screenshot

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.