Why is the data of the associated model queried by laravel incorrect?

Why is the data under the user field in the query result incorrect? User is supposed to be the contents of the user table, but the result is the contents of the blog table. Why? I"ve been doing it all day and I don"t know what"s going on. Can you take a look at it for me? Tested that it is not a cache problem

BlogController.php


Blog


User


blog

user

Apr.26,2022

there is an obvious error in the table name in the user model. If there are similar problems in the future, it is recommended that you do not need to check the correlation first. Check whether there is a problem with the data in a single table, and then check step by step.

Menu