Fix too long key error during migration for some MySQL setup

This commit is contained in:
Bubka 2020-12-01 09:19:58 +01:00
parent 92be5976ff
commit e7156d0650

View File

@ -3,6 +3,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Support\Facades\Blade; use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
@ -26,5 +27,6 @@ public function register()
public function boot() public function boot()
{ {
Blade::withoutComponentTags(); Blade::withoutComponentTags();
Schema::defaultStringLength(191);
} }
} }