I checked this solution. #1071 - Specified key was too long; max key length is 1000 bytes But I want to know how to do this in laravel migration file as I can't do it directly in mysql, I need a solution which can change the length of the index columns in migration file.
KEY `index` (`parent_menu_id`,`menu_link`(50),`plugin`(50),`alias`(50))