SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQ L: alter table `password_resets` add index `password_resets_email_index`(`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
}
Also in PHP:
- When you click on the search button, it is moved to the page laravel
- application of laravel
- 12 oct 2020 date format in php
- automatic read .php url website
- array exists in php
- base64 decode in php
- call seeders database seeder laravel
- check if number is multiple of 3 in php
- check string for value php
- find if a string contains a keyword
- checking if a string contains a certain word
- check type of in php
- codeigniter
- PHP Fatal error: Uncaught Error: Call to undefined function curl_init
- array filter remove duplicates multidimensional php
- composer install laravel installer
- days or month php api format
- @mkdir php
- config cache clear laravel
- 404 page in laravel
- filter elementor
- create website redirect php
- dateFormat php
- creating a folder from php and make it writeable for all