PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Sp ecified key was too long; max key length is 1000 bytes")
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
// Update your /app/Providers/AppServiceProvider.php to contain:
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
//ON this error
// PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists")
// After run -> php artisan migrate:fresh <- ! Note this will reset all tables in db
Also in PHP:
- error out of length in php
- age date de naissance php
- datetime format
- date("Y")
- php random string generator
- filteredduplicata php
- curent date and time php
- clave generator php
- disable admin bar wordpress
- Str slug laravel
- create seed file laravel
- array_search
- $join is_array() in code
- add floater to open a modal in wordpress
- check lenght phph
- contains function in php
- $get url php
- create new larael project 7
- create qr code png image of 200*200 using phpqrcode
- access config variable in codeigniter controller
- changing php version in composer in server
- check type of variable in php
- data type checking php
- check if a key is in an array