芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Http/Requests/NotesRequest.php
[ 'required', ], 'name' => [ 'required', Rule::unique('notes') ->where('company_id', $this->header('company')) ->where('type', $this->type), ], 'notes' => [ 'required', ], ]; if ($this->isMethod('PUT')) { $rules['name'] = [ 'required', Rule::unique('notes') ->ignore($this->route('note')->id) ->where('type', $this->type) ->where('company_id', $this->header('company')), ]; } return $rules; } public function getNotesPayload() { return collect($this->validated()) ->merge([ 'company_id' => $this->header('company'), ]) ->toArray(); } }