Syntax error or access violation: 1071 Specified key was too long; max key length is 1000
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
use Illuminate\Support\Facades\Schema;
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}
Also in PHP:
- create new laravel project
- command to install laravel 7
- date time format 12 hour am pm php
- artisan show routes
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Public/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- display error
- carbon random future date
- Artisan call Cache:clear force
- exception class list for all server error in laravel
- display success message after form submit laravel
- displaying errors in laravel
- check if part of the srint is in other string php
- adding 2 in date() php
- /phpspreadsheet 1.15.0 requires ext-dom * centos yum
- array with files content in a folder
- Where are WordPress Pages and Posts Stored
- array exist php
- blade comment
- api header php
- add display_errors in funtion php
- date php français
- detect mouse click javascript
- PHP detect spam name
- ' in string php