https://github.com/solutionforest/filament-scaffold
Filament scaffold is a toolkit for Filament Admin that simplifies the generation of resources in the panel
https://github.com/solutionforest/filament-scaffold
filament filament-plugin filamentphp filamentphp-plugin laravel scaffold
Last synced: 10 months ago
JSON representation
Filament scaffold is a toolkit for Filament Admin that simplifies the generation of resources in the panel
- Host: GitHub
- URL: https://github.com/solutionforest/filament-scaffold
- Owner: solutionforest
- License: mit
- Created: 2024-07-22T04:22:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T12:11:39.000Z (about 1 year ago)
- Last Synced: 2025-03-29T04:05:11.975Z (11 months ago)
- Topics: filament, filament-plugin, filamentphp, filamentphp-plugin, laravel, scaffold
- Language: PHP
- Homepage:
- Size: 779 KB
- Stars: 55
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Filament Scaffold
[](https://packagist.org/packages/solution-forest/filament-scaffold)
[](https://packagist.org/packages/solution-forest/filament-scaffold)
## 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:
```bash
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:
```bash
use Solutionforest\FilamentScaffold\FilamentScaffoldPlugin;
public function panel(Panel $panel): Panel
{
return $panel
...,
->plugin(FilamentScaffoldPlugin::make());
}
```
## Publishing Configuration file
To publish the configuration file, use:
```bash
php artisan vendor:publish --provider="Solutionforest\FilamentScaffold\FilamentScaffoldServiceProvider" --tag="filament-scaffold-config"
```
You can turn to false to unable the form.
```bash
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
https://github.com/user-attachments/assets/adb41e0c-df7c-48cf-8d33-d5e7d985efb7





## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [celia514](https://github.com/solutionforest)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.