📌  相关文章
📜  试图获取非对象中间件的属性“标头”\VerifyCsrfToken.php 代码示例

📅  最后修改于: 2022-03-11 14:54:49.876000             🧑  作者: Mango

代码示例1
Your middleware must return a Response object, or $next($request). As written, 
when not logged in or when $empl is empty, your middleware is just returning a 
string, not a redirect. Update your returns to:

return route('login');
to
return redirect()->route('login');

respectively.