File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,6 @@ Install via composer
2525composer require melihovv/laravel-env-validator
2626```
2727
28- ### Register Service Provider
29-
30- Note! It is optional step if you use laravel>=5.5 with package auto discovery
31- feature.
32-
33- Add Service Provider to ` config/app.php ` in ` providers ` section
34- ``` php
35- Melihovv\LaravelEnvValidator\ServiceProvider::class,
36- ```
37-
3828### Publish configuration file
3929
4030```
@@ -47,7 +37,6 @@ php artisan vendor:publish --provider="Melihovv\LaravelEnvValidator\ServiceProvi
4737<?php
4838
4939return [
50- 'live_validation' => false,
5140 'rules' => [
5241 'SOME_IMPORTANT_VARIABLE' => 'required',
5342 'ANOTHER_IMPORTANT_ONE' => 'required|in:TYPE_A,TYPE_B,TYPE_C',
@@ -56,12 +45,10 @@ return [
5645```
5746
5847## Usage
59- In case you set ` live_validation ` to ` false ` in config, you may use artisan
60- command
48+ Simply run following command
6149```
6250php artisan config:env-validator
6351```
64- Otherwise env variables will be validated on every application start.
6552
6653## Security
6754
You can’t perform that action at this time.
0 commit comments