Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ash-jc-allen/laravel-config-validator-examples
https://github.com/ash-jc-allen/laravel-config-validator-examples
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ash-jc-allen/laravel-config-validator-examples
- Owner: ash-jc-allen
- Created: 2022-03-26T22:53:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:23:48.000Z (over 1 year ago)
- Last Synced: 2024-10-16T15:34:18.580Z (3 months ago)
- Language: PHP
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo contains examples of how the Laravel Config Validator package works in a Laravel application. There are some dummy values set up specifically to throw errors and cause failures.
# Valid Commands
This command will pass without any errors:
```
php artisan config:validate --files=view
```# Invalid Commands
This command will run all the validation rules and fail:
```
php artisan config:validate
```This command will run only the 'app' config validation and fail:
```
php artisan config:validate --files=app
```This command will fail because the directory does not exist in the project:
```
php artisan config:validate --path=invalid_path
```This command will fail because the directory is empty:
```
php artisan config:validate --path=config-validation/empty
```