Download the PHP package michael4d45/laravel-resource-checker without Composer
On this page you can find all versions of the php package michael4d45/laravel-resource-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michael4d45/laravel-resource-checker
More information about michael4d45/laravel-resource-checker
Files in michael4d45/laravel-resource-checker
Package laravel-resource-checker
Short Description A Laravel package to check migrations against Filament resources and models
License MIT
Informations about the package laravel-resource-checker
Laravel Migration Resource Checker
A Laravel package that compares Filament resources and models against migrations using AST parsing to ensure consistency.
Installation
Install the package via Composer:
The package will automatically register its service provider and the command will be available.
Usage
Run the command to check your migrations, resources, and models:
Options
--output=: Specify an output path for the JSON report (default: as configured inconfig/migration-resource-checker.php, orreports/migration_resource_report.json)--json-only: Only output the report JSON to stdout (useful for piping intojq)--fix-missing-properties: Automatically add missing @property annotations to model PHPDoc--fix-missing-property-read: Automatically add missing @property-read annotations for relationships to model PHPDoc--fix-wrong-property-read: Automatically fix wrong @property-read property names to snake_case--fix-wrong-model-doc-types: Automatically fix wrong PHPDoc property types to match migrations--fix-add-fields-to-resources: Automatically add missing fields to resource form schemas--fix-add-fields-to-model-docs: Automatically add missing @property annotations for fields to model PHPDoc
Features
- Parses migrations to extract table schemas or reads the DB schema if db is available
- Analyzes Filament resource forms
- Checks model properties and relationships
- Generates reports on inconsistencies
- Provides automatic fixing options for common issues
Configuration
You can publish the config file to customize the default output path and enable/disable specific checking sections:
This will copy the config file to config/migration-resource-checker.php where you can modify settings.
Section Configuration
You can enable or disable specific sections of the checking process:
This allows you to:
- Focus on specific areas (e.g., only check migrations and models)
- Skip sections that are not relevant to your project
- Speed up execution by disabling unnecessary checks
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-resource-checker with dependencies
laravel/framework Version ^12.0|^13.0
nikic/php-parser Version ^4.0|^5.0
phpdocumentor/reflection-docblock Version ^5.3|^6.0
laravel/surveyor Version ^0.2