Skip to content

Instantly share code, notes, and snippets.

View Hackinet's full-sized avatar
🏠
Working from home

Piyush Jha Hackinet

🏠
Working from home
View GitHub Profile
@Hackinet
Hackinet / laravel-fix-1071-key-too-long.md
Created January 19, 2019 11:55
[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); }

Keybase proof

I hereby claim:

  • I am hackinet on github.
  • I am cybersoul (https://keybase.io/cybersoul) on keybase.
  • I have a public key whose fingerprint is 6C82 B892 8347 F680 50C1 03EE D716 D99F 6EF7 09F7

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am hackinet on github.
* I am cybersoul (https://keybase.io/cybersoul) on keybase.
* I have a public key ASAOd81nCLWzWaHnUWtacMKu3Ric-1L-XCxmD9X3KTS1SAo
To claim this, I am signing this object: