configModel = $config; } /** * 휴면 계정 관리(이메일) - 알림 발송 양식 * @method GET * @see /admin/user/dormant/form/email */ public function index() { return view('admin.user.dormant.form.email', []); } /** * 휴면 계정 관리(이메일) - 알림 발송 양식 저장 * @method POST * @see /admin/user/dormant/form/email */ public function store(Request $request) { $rules = [ 'send_email_dormant_form_title' => 'string|nullable', 'send_email_dormant_form_content' => 'string|nullable', 'send_email_dormancy_form_title' => 'string|nullable', 'send_email_dormancy_form_content' => 'string|nullable', 'send_email_recover_form_title' => 'string|nullable', 'send_email_recover_form_content' => 'string|nullable' ]; $attributes = [ 'send_email_dormant_form_title' => '휴면 예정 - 제목', 'send_email_dormant_form_content' => '휴면 예정 - 내용', 'send_email_dormancy_form_title' => '휴면 전환 - 제목', 'send_email_dormancy_form_content' => '휴면 전환 - 내용', 'send_email_recover_form_title' => '휴면 해제 - 제목', 'send_email_recover_form_content' => '휴면 해제 - 내용' ]; $posts = $this->validate($request, $rules, [], $attributes); $this->configModel->save($posts, $attributes); $message = '이메일 양식 정보가 저장되었습니다.'; return redirect()->route('admin.user.dormant.form.email.index')->with('message', $message); } }