merge([ 'renew' => $this->renew ? true : false ]); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'ascii_name' => 'required|min:2|max:255', 'utf8_name' => 'required|min:2|max:255', 'expiration_date' => 'required|date', 'renew' => 'required|boolean', 'related_brand' => 'nullable|min:2|max:255', 'redirect_dns' => 'nullable|min:2|max:255', 'certificats' => 'nullable|min:2|max:255', 'comment' => 'nullable|min:2|max:255' ]; } }