Example #1
0
 public function testMultiKeyExists()
 {
     // One Level deep
     $this->assertTrue(Arr::multiKeyExists($this->array, 'thekey'));
     // Two Levels deep
     $this->assertTrue(Arr::multiKeyExists($this->array, 'innerKey'));
 }
Example #2
0
 /**
  * Retrieve a validation method for a specified property
  * @param $property string the Property to get message for
  * @return string The message
  */
 public function validationMessageFor($property)
 {
     return Arr::multiKeyExists($this->errors, $property) ? $this->formatValidationMessage($property) : "";
 }