mirror of
https://github.com/koel/koel
synced 2024-11-14 00:17:13 +00:00
Conditionally loading ServiceProvider (#578)
This commit is contained in:
parent
1f110ddff6
commit
70464a8977
2 changed files with 4 additions and 3 deletions
|
@ -31,6 +31,9 @@ class AppServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
//
|
if (!$this->app->environment('production')) {
|
||||||
|
$this->app->register('Laravel\Tinker\TinkerServiceProvider');
|
||||||
|
$this->app->register('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,8 +138,6 @@ return [
|
||||||
Illuminate\Translation\TranslationServiceProvider::class,
|
Illuminate\Translation\TranslationServiceProvider::class,
|
||||||
Illuminate\Validation\ValidationServiceProvider::class,
|
Illuminate\Validation\ValidationServiceProvider::class,
|
||||||
Illuminate\View\ViewServiceProvider::class,
|
Illuminate\View\ViewServiceProvider::class,
|
||||||
Laravel\Tinker\TinkerServiceProvider::class,
|
|
||||||
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
|
|
||||||
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
|
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
|
||||||
Aws\Laravel\AwsServiceProvider::class,
|
Aws\Laravel\AwsServiceProvider::class,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue