Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Created June 12, 2017 16:59
Show Gist options
  • Save Gkiokan/c308e94e8e1727cc38a4c0d41b31a2ea to your computer and use it in GitHub Desktop.
Save Gkiokan/c308e94e8e1727cc38a4c0d41b31a2ea to your computer and use it in GitHub Desktop.
Laravel 5.4 maxLength DB fix in AppServiceProvider
<?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