{"repo":"ash-jc-allen/laravel-config-validator","free":true,"listed":false,"github":"https://github.com/ash-jc-allen/laravel-config-validator","clone":"git clone https://github.com/ash-jc-allen/laravel-config-validator.git","description":"A library for validating your Laravel app's config.","language":"PHP","stars":218,"topics":["laravel","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Table of Contents - Overview - Installation - Requirements - Install the Package - Publishing the Default Rulesets - Usage - Creating a Validation Ruleset - Using the Generator Command - Ruleset Location - Adding Rules to a RuleSet - Custom Validation Error Messages - Only Running in Specific App Environments - Running the Validation - Running the Validation Manually - Only Running on Selected Config Files - Custom Folder Path - Using the Command - Only Running on Selected Config Files (Command) - Custom Folder Path (Command) - Using a Service Provider - Throwing and Preventing Exceptions - Facade - Security - Contribution - Changelog - Upgrading - License Overview A Laravel package that allows you to validate your config values and environment. Installation Requirements The package has been developed and tested to work with the following minimum requirements: - PHP 8.0 - Laravel 8 Install the Package You can install the package via Composer: Publishing the Default Rulesets To get you started with validating your app's config, Laravel Config Validator comes with some default rulesets. To start using these rulesets, you can publish them using the following command: The above command will copy the validation files and place in a config-validation folder in your project's root. These rules are just to get you started, so there are likely going to be rule 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 yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/ash-jc-allen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ash-jc-allen/laravel-config-validator/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."}