Last active
April 11, 2018 09:15
-
-
Save sokhomhuy/376217a28e66e977ed7d8980cba9cc00 to your computer and use it in GitHub Desktop.
Laravel 5.5: Specified key was too long error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As outlined in the Migrations guide to fix this all you have to do is edit your | |
AppServiceProvider.php file and inside the boot method set a default string length: | |
=> app->Providers->AppServiceProvider.php | |
use Illuminate\Support\Facades\Schema; | |
public function boot() | |
{ | |
Schema::defaultStringLength(191); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment