简体   繁体   English

ErrorException (E_NOTICE) 试图获取非对象的属性

[英]ErrorException (E_NOTICE) Trying to get property of non-object

hello everyone could help me with the following problem, I am using laravel 5.5 and I am doing a system of incidents.你好,每个人都可以帮助我解决以下问题,我正在使用 laravel 5.5 并且我正在做一个事件系统。

I get this error could help me please to see what is wrong thanks我得到这个错误可以帮助我请看看有什么问题谢谢

error:错误:

在此处输入图片说明

There is no ProjectUser record that matches your query and that's why $projectUser is null and this is causing the error.没有与您的查询匹配的ProjectUser记录,这就是$projectUser为空的原因,这导致了错误。

Add conditional to check if $projectUser exists.添加条件以检查$projectUser存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM