Skip to content

Instantly share code, notes, and snippets.

@pravnkay
Created July 27, 2018 13:42
Show Gist options
  • Save pravnkay/69b409cba96090cc6b1091a1b37ca570 to your computer and use it in GitHub Desktop.
Save pravnkay/69b409cba96090cc6b1091a1b37ca570 to your computer and use it in GitHub Desktop.
Laravel String Length Error Fix
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
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