ログイン機能の実装
php artisan make:auth後、php artisan migrateで下記のようなエラーが生じた。
そのせいか、http://localhost:8000/registerをしても下記のエラーが生じる。migrateしたときに生じるエラーの2つ目にみるようにデータベースとの間でなにか不具合があるのではないかと思っている。しかし、具体的なエラーの内容がわからず解決できない。
発生している問題・エラーメッセージ
at C:\Users\81909\Desktop\hellolaravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| // message to include the bindings with SQL, which will make this exception a 662| // lot more helpful to the developer instead of just the database's errors. 663| catch (Exception $e) { > 664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668| Exception trace: 1 PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists") C:\Users\81909\Desktop\hellolaravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:458 2 PDOStatement::execute() C:\Users\81909\Desktop\hellolaravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:458 Please use the argument -v to see more details.
http://localhost:8000/register時のエラー Class 'App\Http\Controllers\Controller' not found
該当のソースコード
ソースコード
試したこと
現在データベースにはmigrationsとusersがある。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/25 06:30