找不到 Laravel 7.21 类 Illuminate\Support\Facades\Input
我在 app.php 中取了别名但是喜欢
Input' => Illuminate\Support\Facades\Input::class,
在Controller中这样写
use Illuminate\Support\Facades\Input;
这样访问
Input::all() , Input::get('name')
LARAVEL 7.21 版本中的任何更改 ???
最佳答案
基于 Laravel docs ,因为版本 6.x
Input
已被删除。
The Input facade, which was primarily a duplicate of the Request facade, has been removed. If you are using the
Input::get
method, you should now call theRequest::input
method. All other calls to the Input facade may simply be updated to use the Request facade.
关于php - 找不到 Laravel 7.21 类 Illuminate\Support\Facades\Input,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63031318/