SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
Also in PHP:
- codeigniter get num_rows
- error display php
- date() today php
- $this- attribute laravel
- drupal/core 8.9.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. composer install
- composer create-project --prefer-dist laravel/laravel blog
- create laravel project in laravel/laravel
- create a random string in php
- clear cache in laravel putty
- count string length in php
- create laravel project with version
- ata date format in php
- catching error php
- PHP Deprecated: Function create_function()
- add validation for webp image in laravel
- check array is associative laravel
- php random string generator
- encode and decode data in php
- ext dom php
- export html table data to excel in php
- find first occurance of sentence in a string php
- check if array contains key php
- How to change add to cart button in wordpress
- code cache laravel