Skip to content

Instantly share code, notes, and snippets.

@fabiorecife
Created December 19, 2018 07:52
Show Gist options
  • Select an option

  • Save fabiorecife/14c88944f2bf2c8c8bdd9dbf50450d68 to your computer and use it in GitHub Desktop.

Select an option

Save fabiorecife/14c88944f2bf2c8c8bdd9dbf50450d68 to your computer and use it in GitHub Desktop.
laravel - fix error in migration (index size)
<?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