SQLSTATE[42000]: Syntax error or access violation: 1071
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:
- catch erro message php
- find days with name between two dates in php
- fget length of string php
- $time = date('r') php
- eloquent get query log
- error reporting php all
- + php quantifer
- check array in array key
- check string exist in string php
- disable register route laravel
- create dir php
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 102400 bytes) in Unknown on line 0 laravel
- Undefined variable: subcopy laravel mail
- developer polyglots
- check if index of array exists php
- PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt()
- blood groups laravel seeder
- decode base64 with key php
- filter in route:list
- contains in php string
- array key search in php
- add day to php date zero to add 10 below add zero
- check string appear in string php
- display php erros