src/Route/AbstractModelRoute.php
public function getFirstError()
    {
        if (!$this->model) {
            return false;
        }

        $errors = $this->model->getErrors()->errors();

        return (count($errors) > 0) ? $errors[0] : false;
    }
public function getFirstError()
    {
        if (!$this->model) {
            return false;
        }

        $errors = $this->model->getErrors()->errors();

        return (count($errors) > 0) ? $errors[0] : false;
    }
public function getFirstError ( ) { if ( ! $ this -> model ) { return false ; } $ errors = $ this -> model -> getErrors ( ) -> errors ( ) ; return ( count ( $ errors ) > 0 ) ? $ errors [ 0 ] : false ; }
Gets the first error off the error stack.

@return array|false
Gets the first error off the error stack .