File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,35 @@ LLH is a set of artisan commands to manage translations in your Laravel project.
46
46
```
47
47
48
48
- Update your installation : `composer update`
49
- - For Laravel, add the following line in the `providers` array of the `config/app.php` configuration file :
49
+
50
+ - For Laravel, add the following lines in the `AppServiceProvider` array of the `config/app.php` configuration file :
50
51
```php
51
52
Potsky\LaravelLocalizationHelpers\LaravelLocalizationHelpersServiceProvider::class,
52
53
```
53
54
55
+ On Laravel 5.5, if you don't use the package in production, disable auto-loading and register it only on `local` or `dev`:
56
+
57
+ - Add the following lines in the `register` method of the `AppServiceProvider` :
58
+ ```php
59
+ public function register()
60
+ {
61
+ if ($this->app->environment() === 'dev') { // or local or whatever
62
+ $this->app->register(\Potsky\LaravelLocalizationHelpers\LaravelLocalizationHelpersServiceProvider::class);
63
+ }
64
+ }
65
+ ```
66
+
67
+ - Disable to auto-register provider by adding these lines in the `composer.json` file:
68
+ ```php
69
+ "extra" : {
70
+ "laravel" : {
71
+ "dont-discover" : [
72
+ "potsky/laravel-localization-helpers"
73
+ ]
74
+ }
75
+ }
76
+ ```
77
+
54
78
- For Lumen, add the following lines in the `bootstrap/app.php` file :
55
79
```php
56
80
$app->register( Potsky\LaravelLocalizationHelpers\LaravelLocalizationHelpersServiceProvider::class );
You can’t perform that action at this time.
0 commit comments