エラー: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel_umarche.app\http\controllers\admin\owners' doesn't exist 解決方法: OwnersController.php store()の中の 修正前:'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:owners'.Owners::class], 修正後:'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:owners'], unique バリデーションルールで Owners::class を使用していますが、これはモデルのクラスを指定するものです。 しかし、正しくはテーブルの名前を指定する必要があります。 by Chat-GPT 3.5
この解決により、すでに登録されているメアドを登録しようとすると、バリデーションエラーが発生します。
教材:【Laravel】マルチログイン機能を構築し本格的なECサイトをつくってみよう【Breeze/tailwindcss】