Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 34bd7c3

Browse files
committed
Update Ardent.php
Added ``$customAttributes`` on ``Ardent::validate()`` signature.
1 parent 15ca036 commit 34bd7c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/LaravelBook/Ardent/Ardent.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ public static function configureAsExternal(array $connection) {
484484
* @param $data
485485
* @param $rules
486486
* @param $customMessages
487+
* @param $customAttributes
487488
* @return \Illuminate\Validation\Validator
488489
* @see Ardent::$externalValidator
489490
*/
@@ -498,12 +499,13 @@ protected static function makeValidator($data, $rules, $customMessages, $customA
498499
/**
499500
* Validate the model instance
500501
*
501-
* @param array $rules Validation rules
502-
* @param array $customMessages Custom error messages
502+
* @param array $rules Validation rules
503+
* @param array $customMessages Custom error messages
504+
* @param array $customAttributes Custom attributes
503505
* @return bool
504506
* @throws InvalidModelException
505507
*/
506-
public function validate(array $rules = array(), array $customMessages = array()) {
508+
public function validate(array $rules = array(), array $customMessages = array(), array $customAttributes = array()) {
507509
if ($this->fireModelEvent('validating') === false) {
508510
if ($this->throwOnValidation) {
509511
throw new InvalidModelException($this);

0 commit comments

Comments
 (0)