欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Non-static method Illuminate\Http\Request::input() should not be called statically, assuming $this from incompatible context 有大用

public function show($id)
{
  $is_area = Request::input('is_area');
    var_dump($is_area);
}

报错 
Non-static method Illuminate\Http\Request::input() should not be called statically, assuming $this from incompatible context

我的方法是 
public function show($id,Request $request) {

$is_area = $request->input('is_area');
  var_dump($is_area);
}
普通分类: