"Specified key was too long; max key length is 1000 bytes" Code Answer's
You're definitely familiar with the best coding language PHP that developers use to develop their projects and they get all their queries like "Specified key was too long; max key length is 1000 bytes" answered properly. Developers are finding an appropriate answer about Specified key was too long; max key length is 1000 bytes related to the PHP coding language. By visiting this online portal developers get answers concerning PHP codes question like Specified key was too long; max key length is 1000 bytes. Enter your desired code related query in the search bar and get every piece of information about PHP code related question on Specified key was too long; max key length is 1000 bytes.
specified key was too long max key length is 767 bytes
# AppServiceProvider.php
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Source: laravel-news.com
specified key was too long; max key length is 767 bytes (s
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Source: laravel-news.com
Specified key was too long; max key length is 1000 bytes
In app\Providers\AppServiceProvider.php File
// Add
use Illuminate\Support\Facades\Schema;
public function boot() {
// Add In boot function
Schema::defaultStringLength(191);
}
All those coders who are working on the PHP based application and are stuck on Specified key was too long; max key length is 1000 bytes can get a collection of related answers to their query. Programmers need to enter their query on Specified key was too long; max key length is 1000 bytes related to PHP code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about Specified key was too long; max key length is 1000 bytes for the programmers working on PHP code while coding their module. Coders are also allowed to rectify already present answers of Specified key was too long; max key length is 1000 bytes while working on the PHP language code. Developers can add up suggestions if they deem fit any other answer relating to "Specified key was too long; max key length is 1000 bytes". Visit this developer's friendly online web community, CodeProZone, and get your queries like Specified key was too long; max key length is 1000 bytes resolved professionally and stay updated to the latest PHP updates.