表单
<form action="/create" method="post" enctype="multipart/form-data">
@csrf
<p>学员名称:<input type="text" name="username"></p>
<p>学员年龄:<input type="text" name="number"></p>
<p>学员性别:
<input type="radio" name="xin" value="男" checked>男
<input type="radio" name="xin" value="女">女
</p>
<p>上传图片:<input type="file" name="log"></p>
<button type="submit">提交</button>
</form>
控制器
public function create(Request $request){
$param=$request->post();
if($request->hasFile('log') && $request->file('log&#