I am new in Laravel and i am using "Laravel version 9" (latest),I run following command but giving me following error
Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
i had 4 files inside "database/migrations" then i run "php artisan serve" command but only "two tables" inserted into database (users(empty) and migrations),how can i add rest of tables ? I tried with following code inside "/app/Providers/AppServiceProvider.php" but still getting same error,How can i fix this ?
public function boot()
{
Schema::defaultStringLength(191);
}