sheidin/fillable

Generate fillable attribute for eloquent models

1.0.1 2022-08-30 18:09 UTC

This package is auto-updated.

Last update: 2025-06-29 02:00:13 UTC


README

This package will help you to fill the fillabel attribute within the Laravel eloquent model

Installation

You can install the package via composer:

composer require sheidin/fillable

You can publish the config file with:

php artisan vendor:publish --tag="fillable"

This is the contents of the published config file:

return [
    'models_directory' => env('MODELS_DIR', app_path('Models')),
    'ignore_columns' => ['id'],
];

Usage

php artisan model:fillable
#additional options:
model:fillable
    {model?* : The name of the model}
    {--no-override : Whether the fillable attribute should not be override}

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.