public function create($request) { $param = $request->getParameters(); $img_url = $this->_handleUpload($request); $detail = StaffContact::create(['user_id' => Session::get()->id, 'tel_1' => isset($param['tel_1']) ? $param['tel_1'] : "", 'tel_2' => isset($param['tel_2']) ? $param['tel_2'] : "", 'email' => isset($param['email']) ? $param['email'] : "", 'push_bullet_email' => isset($param['push_bullet_email']) ? $param['push_bullet_email'] : "", 'shown_name' => isset($param['shown_name']) ? $param['shown_name'] : null, 'description' => isset($param['description']) ? $param['description'] : null, 'team_img_name' => $img_url]); return new RedirectResponse(WEBROOT . 'admin/staffContactDetails'); }