Posted on / by Vivan Web Solution / in Laravel Development

How to fix Some Migration error in Laravel?

How to fix SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes error?

Step 1 :

Open App/provider/AppServiceProvider.php
and add the following code.

use Illuminate\Support\Facades\Schema;

class AppServiceProvider extends ServiceProvider
* Bootstrap any application services.
* @return void
public function boot()

Thanks for reading this article. I hope it will help you.

Leave a Reply