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);
}
//add/edit the following into app/Providers/AppServiceProviders.php:
use Illuminate\Support\Facades\Schema;
function boot()
{
Builder::defaultStringLength(191); // Update defaultStringLength
}use Illuminate\Support\Facades\Schema;
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}
Also in PHP:
- array value unique php
- factoring and seeding in laravel
- codeigniter get num_rows
- advanced custom field repeater
- calculate total time from start and end datetime in php
- check format have image laravel post
- decode ' php
- PHP Deprecated: Function create_function()
- Allowed memory size of bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php
- ReactPHP
- disable errors php
- array push in php
- check if a string contains a word in php
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 5287496 bytes) on laravel
- DATE fromat H:i j M Y
- date formatting php
- Cannot access protected property Slim\Slim::$mode in
- apt install php7.4-mbstring php7.4-zip php7.4-xml
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.33.
- What is a Regular Expression in php
- cache laravel docs
- database seeder laravel 8
- date in php in dats
- cache and compile file clear laravel