ofthewildfire / filament-resource-builder
A Filament plugin to quickly add new resources from the GUI inside Filament apps.
Fund package maintenance!
fuascailtdev
Requires
- php: ^8.2|^8.3
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- 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
- spatie/laravel-ray: ^1.26
README
A powerful Filament plugin that allows users to create custom resources dynamically through the GUI. Build complete CRUD interfaces without writing code!
Features
- 🚀 Dynamic Resource Creation - Create resources through Filament's GUI
- 📝 Multiple Field Types - Text, number, email, checkbox, date, textarea, select
- 🗄️ Automatic Database Tables - Creates real database tables automatically
- 🔄 Live Preview - See your resources in navigation immediately
- 🎯 No Code Required - Perfect for non-developers
- 🧩 Filament Native - Integrates seamlessly with existing Filament apps
Installation
You can install the package via composer:
composer require ofthewildfire/filament-resource-builder
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-resource-builder-migrations"
php artisan migrate
Setup
Add the plugin to your Filament panel in app/Providers/Filament/AdminPanelProvider.php
:
use Fuascailtdev\FilamentResourceBuilder\FilamentResourceBuilderPlugin; public function panel(Panel $panel): Panel { return $panel // ... other configuration ->plugins([ FilamentResourceBuilderPlugin::make(), ]); }
Usage
- Access the Resource Builder: Navigate to "Resource Builder" in your Filament admin panel
- Create a New Resource: Click "Create" and enter your resource details (e.g., "Products")
- Add Fields: Use the repeater to add fields like:
- Product Title (text)
- Price (number)
- Description (textarea)
- Is Featured (checkbox)
- Save: Your resource will automatically appear in the navigation
- Manage Data: Click on your new resource to start adding and managing data
Example
Creating a "Products" resource with title, price, and description fields will:
- Create a
products
database table - Generate a complete Filament resource with forms and tables
- Add "Products" to your navigation menu
- Allow full CRUD operations on product data
Supported Field Types
- Text - Single line text input
- Textarea - Multi-line text input
- Number - Numeric input
- Email - Email input with validation
- Password - Password input
- Select - Dropdown with custom options
- Checkbox - Boolean checkbox
- Date - Date picker
- DateTime - Date and time picker
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.