Scaffold
Scaffold is a toolkiit that simplifies the generation of resources. It can automatically generate madels, resources, migration files, and more, creating corresponding forms and table views based on the database table.
Author:
Solution Forest
Documentation
- Description
- Features
- Installation
- Publishing Configuration file
- Usage
- Preview
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
#Description
Filament scaffold is a toolkiit for Filament Admin that simplifies the generation of resources. It can automatically generate models, resources, migration files, and more, creating corresponding forms and table views based on the database table. Filament scaffold aims to speed up development and reduce the time spent writing repetitive code.
#Features
-
Automatic Filament Resource Generation: Generates Filament resource files, including forms and table views, based on specified table names.
-
Support for Multiple Resource Types: Can generate models, migration files, factories, controllers, and more.
-
Dynamic Form Generation: Automatically generates form fields based on database table structure.
-
Seamless Integration with Laravel and Filament: Utilizes Laravel's Artisan commands and Filament's extension mechanism for efficient resource management.
#Installation
You can install the package via composer:
composer require solution-forest/filament-scaffold
Then, you need to connect to the database in the .env file.
In your preject, app\Providers\Filament\xxxPanelProvider.php add this code:
use Solutionforest\FilamentScaffold\FilamentScaffoldPlugin;
public function panel(Panel $panel): Panel
{
return $panel
...,
->plugin(FilamentScaffoldPlugin::make());
}
#Publishing Configuration file
To publish the configuration file, use:
php artisan vendor:publish --provider="Solutionforest\FilamentScaffold\FilamentScaffoldServiceProvider" --tag="filament-scaffold-config"
You can turn to false to unable the form.
return [
'enabled' => false,
];
#Usage
In your admin page will have a Scaffolds from. You can choose the table from the connected database or create other table in the form. Then, you can click the "Create" button to create the reesource, model or migration.
[!NOTE] In the resource file, for the table, the table column type default is TextColumn. For the form, the type defualt is TextInput.
#Preview
#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.
The author
From the same author
Email 2FA
This package seamlessly integrates two-factor authentication (2FA) into your application using email verification codes. Enhance the security of your user accounts and protect sensitive data.
Author:
Solution Forest
Tree
This plugin creates model management page with heritage tree structure view for Filament Admin. It could be used to create menu, etc.
Author:
Solution Forest
Access-Management
This is total different concept on handle role and permission. A RBAC permission control through spatie/laravel-permission.
Author:
Solution Forest
Inspire CMS
InspireCMS is a flexible, un-opinionated content engine for Laravel, built on Filament.
Author:
Solution Forest
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese