public function all($format = null) { $format = $this->checkFormat($format); $all = []; foreach ($this->messages as $key => $messages) { $all = array_merge($all, $this->transform($messages, $format, $key)); } return $all; }
/** * Get the message container for the validator. * * * @return \Overtrue\Support\MessageBag */ public function messages() { if (!$this->messages) { $this->passes(); } return $this->messages->all(); }