Call to undefined method Illuminate\Support\Facades\Request::all()


版本:laravel5.8       

system: win10+php7.2+nginx1.5+mysql5.7



以下写法报错(Call to undefined method Illuminate\Support\Facades\Request::all()):

```

use Illuminate\Support\Facades\Request;


public function upload(Request $request) {

        dd($request->all());

 }



但是以下写法就可以:

use Illuminate\Support\Facades\Request;


public function upload(Request $request) {

        dd(Request::all());

 }



请问这是为什么?

```


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: laravel 任务调度 dailyat()不执行,用everyFiveMinutes却可以?

>> 下一篇: 关联模型查询时跨数据库查询如何解决呀