public function first()
    {
        // Perform query
        $result = $this->get();

        // Abort if no models where found
        if (!$result || !is_array($result) || empty($result)) {
            return false;
        }

        // Return the first matching model
        return reset($result);
    }
public function first()
    {
        // Perform query
        $result = $this->get();

        // Abort if no models where found
        if (!$result || !is_array($result) || empty($result)) {
            return false;
        }

        // Return the first matching model
        return reset($result);
    }
public function first ( ) { // Perform query $ result = $ this -> get ( ) ; // Abort if no models where found if ( ! $ result || ! is_array ( $ result ) || empty ( $ result ) ) { return false ; } // Return the first matching model return reset ( $ result ) ; }
Returns the first model found

@return bool|array Model attributes, or false
Returns the first model found