How to solve Specified key was too long error in laravel migration
As outlined in the Migrations guide to fix this all you have to do is edit your AppServiceProvider.php file and inside the boot method set a default string length: Solution2: Specify a smaller length for particular column Example: