src/Repositories/Repository.php
public function all($limit = null)
    {
        if($limit){
            return $this->model->limit($limit)->get();
        }

        return $this->model->all();
    }
public function all($limit = null)
    {
        if($limit){
            return $this->model->limit($limit)->get();
        }

        return $this->model->all();
    }
public function all ( $ limit = null ) { if ( $ limit ) { return $ this -> model -> limit ( $ limit ) -> get ( ) ; } return $ this -> model -> all ( ) ; }
get all records in database

@param  integer  $limit
@return Model
get all records in database