Laravel “Specified key was too long” error solution

For laravel 5.7 to 6.0 Steps to followed Go to App\Providers\AppServiceProvider.php. Add this to provider use Illuminate\Support\Facades\Schema; in top. Inside the Boot function Add this Schema::defaultStringLength(191); that all, Enjoy. https://stackoverflow.com/a/51039039/2132069

önce , admin tarafından