芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Http/Requests/Orders/PlaceOrder.php
order_number) { $this->merge([ 'order_number' => \App\Helper\NumberFormat::order($this->order_number), ]); } } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = []; $rules['status'] = 'sometimes|in:pending,on-hold,failed,processing,completed,canceled'; $rules['order_number'] = [ 'required', Rule::unique('orders')->where('company_id', company()->id) ]; if (request()->has('client_id')) { $rules['client_id'] = 'required'; } return $rules; } public function messages() { return [ 'client_id.required' => __('modules.projects.selectClient') ]; } }