Skip to content

Commit 64552ae

Browse files
authored
fix for Specified key was too long
1 parent 08569c9 commit 64552ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Support\Facades\Schema;
67

78
class AppServiceProvider extends ServiceProvider
89
{
@@ -23,6 +24,6 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
//
27+
Schema::defaultStringLength(191);
2728
}
2829
}

0 commit comments

Comments
 (0)