Skip to content

Instantly share code, notes, and snippets.

@Hackinet
Created January 19, 2019 11:55
Show Gist options
  • Save Hackinet/7463aff20fe2a305734a4b089803752d to your computer and use it in GitHub Desktop.
Save Hackinet/7463aff20fe2a305734a4b089803752d to your computer and use it in GitHub Desktop.
[FIX]: 1071 Specified key was too long; | Laravel 5.4+

Fixing

Go to the path app/Providers/AppServiceProvider.php and find boot() method. Add Schema::defaultStringLength(191); to the method. Should look like this:

public function boot(){ Schema::defaultStringLength(191); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment