質問編集履歴

1

試したことを追加

2022/01/07 09:47

投稿

kerry88
kerry88

スコア0

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,16 @@
24
24
 
25
25
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app_db.posts' doesn't exist (SQL: select count(*) as aggregate from `posts` where `login_id` = rrr090788)
26
26
 
27
+
28
+
29
+ A table was not found
30
+
31
+ You might have forgotten to run your migrations. You can run your migrations using php artisan migrate.
32
+
33
+
34
+
35
+ Pressing the button below will try to run your migrations.
36
+
27
37
  ```
28
38
 
29
39
 
@@ -184,6 +194,44 @@
184
194
 
185
195
 
186
196
 
197
+ ```migrate
198
+
199
+ $ php artisan migrate
200
+
201
+ Nothing to migrate.
202
+
203
+
204
+
205
+ $ php artisan migrate:status
206
+
207
+ でマイグレーションの確認をしたら全てYesになっている。
208
+
209
+ 困りました。
210
+
211
+ ```
212
+
213
+
214
+
215
+ ```Admin
216
+
217
+ class Admin extends Authenticatable{
218
+
219
+
220
+
221
+ /** @var テーブル名 */
222
+
223
+ protected $table = 'admins';
224
+
225
+ }
226
+
227
+
228
+
229
+ 単数形(tbl_admin)から複数形(admins)にしましたが、同じく駄目でした。
230
+
231
+ ```
232
+
233
+
234
+
187
235
  ### 補足情報(FW/ツールのバージョンなど)
188
236
 
189
237