私はすべての移行ファイルを既に作成しているLaravelアプリケーションを構築しようとしています。ロールバックしかし、同じエラーを私は取得しています:Laravel:[PDOException] SQLSTATE [42S02]:ベーステーブルまたはビューが見つかりません
[Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'atom.users' does n't exist (SQL: select exists(select * from `users`) as `exists`) [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'atom.users' does n't exist
私は作曲を更新して移行しようとした:私は
php artisan migrate
コマンドを実行しようとしたときしかし、私は次のエラーを見ましたいつでも私はコマンドを実行します。それだけでなく、.ENVファイルにもエラーはありません。私は何かが私の問題を見つけるのを助けることができる、何か、エラーを見つけることができませんでした..ありがとう。ここで
は私のユーザー・テーブル・マイグレーションファイルです:
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
アトムデータベースを作成しましたか? –
はい..私は、アトム – Hola
という名前のデータベースを持っていますが、 'composer dump-autoload'コマンドを実行して、もう一度やり直してください。 –