public function all($order = 'ASC')
    {
        $capsule = $this->_database->getCapsule();

        $this->_model = $capsule->table($this->table)->orderBy('id', $order)->get();

        return $this->_model;
    }
public function all($order = 'ASC')
    {
        $capsule = $this->_database->getCapsule();

        $this->_model = $capsule->table($this->table)->orderBy('id', $order)->get();

        return $this->_model;
    }
public function all ( $ order = 'ASC' ) { $ capsule = $ this -> _database -> getCapsule ( ) ; $ this -> _model = $ capsule -> table ( $ this -> table ) -> orderBy ( 'id' , $ order ) -> get ( ) ; return $ this -> _model ; }
Gets all results from the database.

@param string $order - The order of the results

@return \Illuminate\Database\Query\Builder
Gets all results from the database .