📌  相关文章
📜  php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'password_resets' already exists - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:09.885000             🧑  作者: Mango

代码示例1
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