Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Config Validator Laravel Package

ashallendesign/laravel-config-validator

Validate your Laravel config at runtime or via Artisan. Define rulesets for config files with custom messages and environment targeting, generate rulesets quickly, and optionally publish defaults. Catch missing/invalid config early in local, CI, or production.

View on GitHub
Deep Wiki
Context7
v2.8.0

What's Changed

  • Added support for Laravel 12. #69
  • Added support for PHPUnit 11. #72
  • Dropped support for Laravel 8 and 9. #72
  • Dropped support for PHP 8.0 and 8.1. #71
  • Migrated from nunomaduro/larastan to larastan/larastan and added support for Larastan 3. #70

Full Changelog: https://github.com/ash-jc-allen/laravel-config-validator/compare/v2.7.0...v2.8.0

v2.6.1
v2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/ash-jc-allen/laravel-config-validator/compare/v2.1.0...v2.2.0

v2.1.0

Added

  • Improved command output using Termwind. Huge thanks to @xiCO2k for this! #38
  • Added dependency requirement for illuminate/command. #40

Updated

  • Removed unneeded illuminate/cache dependency requirement. #40
  • Removed old and unneeded exceptions. #39
  • Updated the PHPUnit config file to the newest format. #45

Fixed

  • Fixed bug that was removing underscores from validation error messages. #43
v2.0.0

Added

  • Added support for Laravel 9 and PHP 8.1. #32
  • Added Larastan workflow to run on GitHub Actions. #34
  • Added type hints and fields types. #35

Changed

  • Changed default directory from config/validation to config-validation. #31
  • Migrated from TravisCI to GitHub Actions for running tests. #35
  • Moved default config rulesets to stubs/config-validation. #36
  • Fixed bug that prevented Rule objects from being used. #33

Removed

  • Dropped support for Laravel 6 and 7. #32
  • Dropped support for PHP 7.3 and 7.4. #32
v1.3.0

New Features

As of Laravel Config Validator v1.3.0, the package can now be run using PHP 8.

v1.2.0

New Features

As of Laravel Config Validator v1.2.0, the package now comes with some default rulesets. To start using these rulesets, you can publish them using the following command:

php artisan vendor:publish --tag=config-validator-defaults

The above command will copy the validation files and place them in a config/validation folder in your project. These rules are just to get you started, so there are likely going to be rules in the files that don't apply to your app. So, once you've published them, feel free to delete them or edit them as much as you'd like.

v1.1.0

New Features

A new errors() method has now been added to the ConfigValidator class and can be used for getting any errors caught during the validation. The errors are returned as an array.

A new throwExceptionOnFailure() method has now been added to the ConfigValidator class and can be used for determining whether if exceptions should be thrown if the validation fails.

The example below shows how to prevent any exceptions from being thrown if the validation fails:

$configValidator = new ConfigValidator();

$errors = $configValidator->throwExceptionOnFailure(false)
                ->run()
                ->errors();

The config:validate command has been updated to make use of the new errors() and throwExceptionOnFailure() methods. Now, instead of a single validation error being returned as an exception, all of the validation error messages will be displayed in the console within a table.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle