我正在尝试使用查询$features = DB::table('features')->get();从我的数据库表中检索数据,然后我想在我的视图中使用它: @endforeach
我收到这个错误:Trying to get property of non-object我试图返回$features,但它不是空的。
其他的关系都运行得很好。也许我做错了什么。这是错误:Trying to get property of non-objectpublic function users() $userTheme = ThemeUserorderBy('created_at', 'DESC')->paginate(20);}
这是我的观