laravel 8
This commit is contained in:
@ -2,28 +2,12 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Blade;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider as Provider;
|
||||
use Schema;
|
||||
|
||||
class App extends Provider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// Laravel db fix
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
// @todo Remove the if control after 1.3 update
|
||||
if (method_exists('Blade', 'withoutDoubleEncoding')) {
|
||||
Blade::withoutDoubleEncoding();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
@ -39,4 +23,17 @@ class App extends Provider
|
||||
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// Laravel db fix
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
Paginator::useBootstrap();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user