Laravel Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes Hatası

/app/Providers/AppServiceProvider.php dosyasını açın ve public function boot() { dan sonra aşağıdaki kodu ekleyin.
Schema::defaultStringLength(291);