我想在$ request中访问pic,这是UploadedFile类的实例,但是当我使用
时$request->pic;
它什么都不返回......
这是我的dd($ request-> all())结果
array:4 [
"title" => "blah blah
"desc" => "some text"
"respawn" => "mail"
"pic" => UploadedFile {#27
-test: false
-originalName: "hamayesh-hesabdari2.jpg"
-mimeType: "image/jpeg"
-size: 160295
-error: 0
}
]
我该如何访问它?