ErrorException试图获取非对象的属性“仓库”(查看: C:\ xampp \ htdocs \ inventory \ resources \ views \ partials \ contentheader.blade.php) (视图: C:\ xampp \ htdocs \ inventory \ resources \ views \ partials \ contentheader.blade.php) (视图: C:\ xampp \ htdocs \ inventory \ resources \ views \ partials \ contentheader.blade.php)
答案 0 :(得分:0)
您已将“仓库”作为“用户”的属性,而您正试图在已授权的用户上使用它:
Auth::user()->warehouse
用户是否登录?