Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉那是什么?我尝试制作中间件,除了来自输入字段的请求请求,但我收到此错误,我试图在 Google 中找到任何东西都找不到,带有错误和中间件代码的图像我附上在此处输入图像描述
在此处输入图像描述
如我所见,在这里我想建议您应该在第return一句话中返回一个方法(或路由)。不只是返回一个像return "office". 例如,如果我有一个名为:
return
return "office"
public function activity() { return 'It works.' }
我会回来return redirect('activity');替换你的字符串句子。因为我认为你应该返回一个对象,所以我们至少返回一个对象。
return redirect('activity');