v2 first commit
This commit is contained in:
37
app/Providers/App.php
Normal file
37
app/Providers/App.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user