PHPackages                             jrbarros/laravel-update-fillable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jrbarros/laravel-update-fillable

ActiveLibrary

jrbarros/laravel-update-fillable
================================

This is my package laravel-update-fillable

v0.0.4(3y ago)813[2 issues](https://github.com/jrbarros/laravel-update-fillable/issues)MITPHPPHP ^8.1

Since May 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jrbarros/laravel-update-fillable)[ Packagist](https://packagist.org/packages/jrbarros/laravel-update-fillable)[ Docs](https://github.com/jrbarros/laravel-update-fillable)[ RSS](/packages/jrbarros-laravel-update-fillable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (16)Versions (5)Used By (0)

Laravel Update Fillable
=======================

[](#laravel-update-fillable)

Laravel Update Fillable is a command-line tool that updates the $fillable property of Eloquent models based on the current database schema.

Installation
------------

[](#installation)

#### Install the package via Composer:

[](#install-the-package-via-composer)

```
composer require jrbarros/laravel-update-fillable --dev
```

Usage
-----

[](#usage)

To update the $fillable property of all Eloquent models in your project:

```
php artisan update:fillable
```

To update the $fillable property of a specific Eloquent model:

```
php artisan update:fillable ModelName
```

To update the $fillable property of all Eloquent models in a specific directory (e.g. app/Models):

```
php artisan update:fillable --directories=app/Models
```

To exclude certain columns from the $fillable property:

```
php artisan update:fillable --exclude=id,created_at,updated_at
```

To write the changes to the model files:

```
php artisan update:fillable --write
```

To specify the path to your project:

```
php artisan update:fillable --path=/path/to/project
```

Options
=======

[](#options)

### The following options are available:

[](#the-following-options-are-available)

- `--write`: Write changes to the model files (default: false)
- `--exclude`: Comma-separated list of column names to exclude from the fillable property (default: "id")
- `--path`: The path to the project (default: base\_path())
- `--directories`: Comma-separated list of directories where the models are located (default: "app") model: The name of a specific model to update (optional)

Customization
=============

[](#customization)

You can customize the behavior of the package by creating a nonFillable property in your model classes. This property should be an array of column names that should be excluded from the fillable property:

```
class User extends Model
{
    protected $nonFillable = ['password'];
    protected $fillable = ['name', 'email'];
}
```

TODO
====

[](#todo)

- Remove migration, model e config and use what you need to test us, creating less useless code
- Clean existing tests and create more
- Refactor any function and check compatibility with older versions of laravel

License
-------

[](#license)

Laravel Update Fillable is open-sourced software licensed under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

1098d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00b6392647e4c38efad2fcdc9adc124141d277def88a6b71dfc22f2efbd10b3d?d=identicon)[jrbarros](/maintainers/jrbarros)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (332 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (46 commits)")[![jrbarros](https://avatars.githubusercontent.com/u/10848562?v=4)](https://github.com/jrbarros "jrbarros (29 commits)")[![pforret](https://avatars.githubusercontent.com/u/474312?v=4)](https://github.com/pforret "pforret (16 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (14 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (8 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (7 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (7 commits)")[![patinthehat](https://avatars.githubusercontent.com/u/5508707?v=4)](https://github.com/patinthehat "patinthehat (5 commits)")[![irfanm96](https://avatars.githubusercontent.com/u/42065936?v=4)](https://github.com/irfanm96 "irfanm96 (5 commits)")[![IGedeon](https://avatars.githubusercontent.com/u/694313?v=4)](https://github.com/IGedeon "IGedeon (4 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (4 commits)")[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (3 commits)")[![jessarcher](https://avatars.githubusercontent.com/u/4977161?v=4)](https://github.com/jessarcher "jessarcher (3 commits)")[![koossaayy](https://avatars.githubusercontent.com/u/6431084?v=4)](https://github.com/koossaayy "koossaayy (3 commits)")[![medilies](https://avatars.githubusercontent.com/u/35309918?v=4)](https://github.com/medilies "medilies (3 commits)")[![sixlive](https://avatars.githubusercontent.com/u/5108034?v=4)](https://github.com/sixlive "sixlive (3 commits)")

---

Tags

laraveljrbarroslaravel-update-fillable

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jrbarros-laravel-update-fillable/health.svg)

```
[![Health](https://phpackages.com/badges/jrbarros-laravel-update-fillable/health.svg)](https://phpackages.com/packages/jrbarros-laravel-update-fillable)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[giacomomasseron/laravel-models-generator

Generate Laravel models from an existing database

484.2k](/packages/giacomomasseron-laravel-models-generator)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
