Skip to content

Commit 58e1dab

Browse files
committed
update readme
1 parent 82f6fc9 commit 58e1dab

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ Install via composer
2525
composer 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

4939
return [
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
```
6250
php artisan config:env-validator
6351
```
64-
Otherwise env variables will be validated on every application start.
6552

6653
## Security
6754

0 commit comments

Comments
 (0)