Skip to content

Instantly share code, notes, and snippets.

@kovkor
Created October 31, 2017 14:02
Show Gist options
  • Save kovkor/bbf52ca4c1ba66d573f62823919cb7d5 to your computer and use it in GitHub Desktop.
Save kovkor/bbf52ca4c1ba66d573f62823919cb7d5 to your computer and use it in GitHub Desktop.
Hack for Laravel 5.4 on MySQL 5.6.x (app/Providers/AppServiceProvider.php)
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment