enter image description here Create a table in Laravel, when trying to migrate, this error occurs to me, someone can help me
Asked
Active
Viewed 40 times
-3
-
https://laravel-news.com/laravel-5-4-key-too-long-error this question has been asked before, please do a bit of research before asking. – Skeptical Ant Aug 05 '18 at 15:06
-
You should add more information like your migration etc – iamab.in Aug 05 '18 at 15:06
-
The ideas in your question looks a little bit disorganised. Please see: [How to Ask](https://stackoverflow.com/help/how-to-ask) and [How to write a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). – sɐunıɔןɐqɐp Aug 05 '18 at 15:16
-
What is the data type of `email`? – Ahmed Numaan Aug 05 '18 at 16:34
-
Si encontré esa información laravel-news.com/laravel-5-4-key-too-long-error, pero no resolvio mi problema. – Luis Wizh Angel Aug 08 '18 at 17:33
1 Answers
0
try put in your app/Providers/AppServiceProvider.php
public function boot()
{
\Schema::defaultStringLength(191);
}

aditiadika
- 98
- 4