chrisdicarlo / laravel-config-checker
Package to check that configuration key references actually exist in your config files.
Fund package maintenance!
Chris Di Carlo
Buy Me A Coffee
Installs: 62 951
Dependents: 0
Suggesters: 0
Security: 0
Stars: 99
Watchers: 1
Forks: 4
Open Issues: 0
Requires
- php: ^8.1||^8.2||^8.3
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- spatie/laravel-ray: ^1.35
README
This package adds an Artisan command to check for invalid configuration file references in your application code and Blade views.
Support me
Feel like shouting out a thank you? Buy me a coffee! ☕️
Installation
You can install the package via composer:
composer require chrisdicarlo/laravel-config-checker
Usage
From the command-line, simply run:
php artisan config:check
The command will scan your Php code under app
, database
, routes
, bootstrap
and your Blade views under resources/views
. Any errors will be displayed in a table with information on the location and missing reference:
Disabling progress
To disable progress bars (e.g. in CI), pass the --no-progress
flag when running the command:
php artisan config:check --no-progress
Specifying the file type to check
To skip checking of Php or Blade files, pass --no-php
or --no-blade
respectively:
php artisan config:check --no-php php artisan config:check --no-blade
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.