check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'confirm' => 'accepted' ]; } /** * Get custom messages for validator errors. * * @return array */ public function messages() { return [ 'confirm.accepted' => trans('Pour supprimer votre compte vous devez cocher la case de confirmation.') ]; } }