{"repo":"Muzammal01/syncmodelfillable","free":true,"listed":false,"github":"https://github.com/Muzammal01/syncmodelfillable","clone":"git clone https://github.com/Muzammal01/syncmodelfillable.git","description":"A Laravel package that automatically syncs a model's $fillable fields with its corresponding database migration columns by uisng simple Artisan command.","language":"PHP","stars":12,"topics":["artisan","database","fillable","laravel","laravel-10","laravel-11","laravel-8","laravel-9","laravel-development","laravel-package"],"license":null,"category":"databases-storage","readme_excerpt":"SyncModelFillable SyncModelFillable is a Laravel package designed to help automatically add or update a model's $fillable fields with its database migration columns. 🎉 With just a simple Artisan command. ✨ Features - 🛠️ Syncs model $fillable properties with migration columns. - 📦 Supports Laravel versions 8, 9, 10, 11, and 12. - ⚙️ Customizable to exclude specific columns, like timestamps. - 🔄 New: - The all flag now recursively scans all subdirectories inside app/Models/ . - The --path= option allows selecting a custom directory for scanning models. - The --ignore flag lets you exclude specific models during sync. - 🧹 Cross-platform Pint support: Automatically formats the model file after updating the $fillable fields, ensuring proper code formatting on all operating systems (Windows, macOS, Linux). --- 🚀 Installation 1. Install the package via Composer: 2. (Optional) Publish the configuration file: This will create a config/syncfillable.php file where you can specify columns to exclude (such as created at , updated at , deleted at , etc.). --- 📘 Usage This package provides an Artisan command sync:fillable to sync a model's $fillable fields with its database migration columns. 🔹 Sync a Specific Model To sync the $fillable fields of a specific model inside app/Models/ , including nested folders run this: 🔹 Sync All Models (Including Nested Folders) To sync all models inside app/Models/ , including nested folders: This will: - Scan all subdirectories inside app/Models","default_branch":null,"files":null,"tree":[],"storefront":"/r/Muzammal01","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Muzammal01/syncmodelfillable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}