1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `shoppingcart` add primary key `shoppingcart_identifier_instance_primary`(`identifier`, `instance`))
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Also in PHP:
- data time on php
- acf auto increment field
- count sql query in php
- date to string php
- cache issue laravel
- PaymentIntent::create laravel
- error e all php
- factorial function php
- a non well formed numeric value encountered
- check the existing image in s3 laravel
- extract data from api callback php
- ata date format in php
- clear all cache laravel
- check lenght phph
- Call to a member function diffForHumans() on string in
- centos 7 install php composer
- adding header function to href php
- base64 encode username password php example
- clear cache automatically laravel
- date in php in dats
- App\\Http\\Controllers\\DB' not found
- You want to develop a Laravel application on your Windows machine. For this, you installed the Laravel framework on your system. In which of the following scenarios, Laravel will not run on your system?
- check type of php
- Cannot access protected property Slim\Slim::$mode in