文件上传
if (Input::has('file')) {
$file = Input::('file');
$name = time() . '-' . $file->getClientOriginalName();
$file->move(public_path() . '/images/' . $name);
}if(Input::has('file')) {
$file = Input::file('file');
return [
'path' => $file->getRealPath(),
'size' => $file->getSize(),
'mime' => $file->getMimeType(),
'name' => $file->getClientOriginalName(),
'extension' => $file->geClientOriginalExtension()
];
}