Update dependencies, remove ide_helper generating always

This commit is contained in:
Nabeel Shahzad
2018-03-25 16:19:24 -05:00
parent eefce8bab6
commit 699883f2fc
9 changed files with 126 additions and 6 deletions

View File

@@ -46,5 +46,14 @@ class AppServiceProvider extends ServiceProvider
*/
public function register(): void
{
# Only dev environment stuff
if ($this->app->environment() === 'dev') {
# Only load the IDE helper if it's included. This lets use distribute the
# package without any dev dependencies
if (class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
}
}
}