ocraton / fillthem
One command for create model, migration and seeder with fillable
1.3.0
2023-07-27 18:25 UTC
Requires (Dev)
- illuminate/support: ^10.16
README
ocraton/fillthem is a Laravel package that provide an artisan command to define a model name with fillable fields. Based on that model name, it will create a migration and seeder with those fields.
Installation
Run the following command to install the latest applicable version of the package:
composer require --dev ocraton/fillthem
Laravel
In your app config, add the Service Provider to the $providers
:
'providers' => [ ... Ocraton\Fillthem\Providers\FillthemServiceProvider::class, ],
Usage
Run the following command to create a Car model, migration and seeder with Laravel migration types column:
php artisan make:fillthem Car --fillable=integer:n_wheels,string:model
That's it!