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

这里的技术是共享的

You are here

ErrorException in AdminController.php line 36: Non-static method Illuminate\Http\Request::input() should not be called statically, assuming $this from incompatible context 有大用

在控制器里调用  Request::input('token');会报下面的错

ErrorException in AdminController.php line 36:

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




把 控制器 顶部的上面 
use Illuminate\Http\Request;
改成 use Request;

普通分类: