2020-12-31 16:16:52 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2021-08-02 14:34:10 +02:00
|
|
|
if ($this->app->environment('local')) {
|
|
|
|
$this->app->register('JeroenG\Packager\PackagerServiceProvider');
|
|
|
|
}
|
2020-12-31 16:16:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2022-03-02 12:42:32 +01:00
|
|
|
if(config('app.debug')) {
|
|
|
|
\Debugbar::getJavascriptRenderer()->setAjaxHandlerAutoShow(false);
|
|
|
|
}
|
2020-12-31 16:16:52 +01:00
|
|
|
}
|
|
|
|
}
|