homestead 環境で Laravel プロジェクトを作成した後に、loginフォームをサブミットしたらエラーがでました。
QueryExcetpion
エラーがでました。
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.users' doesn't exist (SQL: select * from `users` where `email` = pugiemonn@gmail.com limit 1)
Base table or view not found
とあるので、テーブルが無いということだと思います。
migrate を実行
homesteadのboxにログインして、migrateコマンドを実行します。
php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table
テーブルを作成しました。
再度確認
テーブルがあるのでエラーがでなくなりました(☝ ՞ਊ ՞)