Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add index `users_userable_type_userable_id_index`(`userable_type`, `userable_id`)
Update your /app/Providers/AppServiceProvider.php to contain:
use Illuminate\Support\Facades\Schema;
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}
Also in PHP:
- To find out where your php.ini is located
- array size php
- 12:30 am time format validation in laravel
- disable login route auth laraevl
- Your Composer dependencies require a PHP version ">= 7.2.5". You are running 7.2.0. in
- check if string has character php
- command working in terminal but working from code php
- config cache clear in laravel
- add days and time to date php
- echo redirect set header
- Fatal error : Allowed memory size of 134217728 bytes exhausted
- crud operations in php
- date() php -1heure?
- check if value contain strings php
- add seconds to datetime php
- Cart::total return number format value laravel
- "\" strpos
- How to check beautify json result using php
- data format php
- find characters in word php
- exception class list for all server error in laravel
- $testing_recipient_email_list = str_replace('@', "+{$recipient}@", $testing_recipient_email);
- check if strlen more than 10 laravel
- curl in php