openstamanager/app/Providers/AppServiceProvider.php

33 lines
640 B
PHP

<?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()
{
if(config('app.debug')) {
\Debugbar::getJavascriptRenderer()->setAjaxHandlerAutoShow(false);
}
}
}