ocraton/fillthem

One command for create model, migration and seeder with fillable

1.3.0 2023-07-27 18:25 UTC

This package is auto-updated.

Last update: 2024-04-30 00:40:00 UTC


README

Laravel Software License

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!