我上传一个文件
在我的控制器中,我这样做了
$file = Input::file('file');
dd($file);
我看到这个
Illuminate\Http\UploadedFile {#1388 ▼
-test: false
-originalName: "config-nsd-got.yaml"
-mimeType: "application/x-yaml"
-error: 0
#hashName: null
path: "/private/var/tmp"
filename: "phpb73hcy"
basename: "phpb73hcy"
pathname: "/private/var/tmp/phpb73hcy" <<<<<<---------- I WANT TO ACCESS THIS
extension: ""
realPath: false
writable: false
readable: false
executable: false
file: false
dir: false
link: false
}
我想要pathname: "/private/var/tmp/phpb73hcy",
我试过了
dd($file->pathname());
dd($file["pathname"]);
我只想要这个/private/var/tmp/phpb73hcy
对我有什么提示吗?
吃鸡游戏
呼啦一阵风