openstamanager/app/Providers/AppServiceProvider.php

33 lines
640 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
if ($this->app->environment('local')) {
$this->app->register('JeroenG\Packager\PackagerServiceProvider');
}
}
/**
* 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);
}
}
}