Uncategorized

Access violation error in Laravel 5.4 migration

When we setup a fresh laravel 5.4 and tried to run default user tables migration

then we got a below error

After searching for this error in google, we came to know that it is due to mysql database engine updation. There are few solutions recommended in few places. We tried them but couldn’t get worked. Later we tried the below solution, it got worked

Step 1: Include Facades/Schema in AppServiceProvider.php file

Step 2: Edit your AppServiceProvider.php file and inside the boot method set a default string length-

Step 3: Drop users, password_resets, migrations tables in the database if already created.

Step 4: Finally, run the php artisan migrate command. Done!.

We hope it might help someone who got this issue.

Reference: https://github.com/laravel/framework/issues/17508

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *