Answers for "php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'password_resets' already exists"

PHP
0

php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'password_resets' already exists

if(!Schema::hasTable('users')){
    Schema::create('users', function (Blueprint $table) {
        $table->increments('id');
        $table->string('name');
        $table->string('email')->unique();
        $table->string('password');
        $table->rememberToken();
        $table->timestamps();
        });
  } 
      above see this condition and save this and run php artisan migrate
 command and your table show in db
Posted by: Guest on July-07-2021

Code answers related to "php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'password_resets' already exists"

Browse Popular Code Answers by Language