Download the PHP package indy2kro/laravel-validate-models without Composer
On this page you can find all versions of the php package indy2kro/laravel-validate-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-validate-models
Introduction
Validate your Eloquent models against the database schema. Checks columns, casts, fillable fields, and relations โ catch mismatches early in CI before they break production.
โจ Features
- ๐ Scans all models in app/Models (configurable paths/namespaces)
- โ
Validates:
- Table existence
- Column type vs. model cast (including enums + custom casters)
- Fillable fields vs. table columns
- Relations resolve without error
- โ๏ธ Configurable via config/validate-models.php
- ๐ฆ Works with Laravel 10+ / PHP 8.1+
- ๐งช Fully tested with Orchestra Testbench
- ๐ง Ships with CI tooling (PHP-CS-Fixer, PHPStan, Rector, PHPUnit)
๐ฆ Installation
Publish the config (optional):
โ๏ธ Configuration
config/validate-models.php:
๐ Usage
Run the validation:
Options:
๐งช Testing locally
All versions of laravel-validate-models with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
The package indy2kro/laravel-validate-models contains the following files
Loading the files please wait ...