示例#1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $image = $request->file("logo");
     $member = new Member();
     $member->fill($request->except('logo'));
     $member->logo = self::upload_pic($image);
     $member->save();
     return redirect()->route('members.links', $member->id);
 }