ActiveRecord\Errors::full_messages PHP Method

full_messages() public method

$model->errors->full_messages(); # array( # "Name can't be blank", # "State is the wrong length (should be 2 chars)" # )
public full_messages ( ) : array
return array
    public function full_messages()
    {
        $full_messages = array();
        $this->to_array(function ($attribute, $message) use(&$full_messages) {
            $full_messages[] = $message;
        });
        return $full_messages;
    }