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

        return $this->model->with($with)->get();

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

        return $this->model->with($with)->get();

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

@param  string   $with
@param  integer  $limit
@return void
get all records in database with withs