38 lines
777 B
PHP
38 lines
777 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider as Provider;
|
|
|
|
class App extends Provider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Laravel db fix
|
|
\Schema::defaultStringLength(191);
|
|
|
|
\Blade::withoutDoubleEncoding();
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
if (env('APP_INSTALLED') && env('APP_DEBUG')) {
|
|
$this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
|
|
}
|
|
|
|
if (env('APP_ENV') !== 'production') {
|
|
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
|
}
|
|
}
|
|
}
|