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.
我有一个关于 Laravel 5.1 的小项目
我将其更新为 5.2
现在我从我的模型中得到这个错误:
Class 'Input' not found
这是代码:
if ( \Input::get('angular') ) { ... }
我在文档中哪里可以找到它?
我是 Laravel 的新手
而且我没找到
谢谢您的帮助
你需要使用:
\Request::input('angular')
代替
\Input::get('angular')
参考:Laravel 5.2 请求文档