Last active
October 26, 2021 16:57
-
-
Save glaucofox/b1583e64d43593009a7875fd758909ca to your computer and use it in GitHub Desktop.
Migration Default String Length fix for Laravel >= 5.4 and MySQL =< 5.7.7
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
| <?php | |
| /* App\Providers\AppServiceProvider.php */ | |
| use Illuminate\Support\Facades\Schema; | |
| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| Schema::defaultStringLength(191); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment