src/Repositories/Repository.php
public function all($related = [], $perPage = 0)
    {
        $results = $this->model->with($related)->orderBy('created_at', 'DESC');
        return $perPage ? $results->paginate($perPage) : $results->get();
    }
public function all($related = [], $perPage = 0)
    {
        $results = $this->model->with($related)->orderBy('created_at', 'DESC');
        return $perPage ? $results->paginate($perPage) : $results->get();
    }
public function all ( $ related = [ ] , $ perPage = 0 ) { $ results = $ this -> model -> with ( $ related ) -> orderBy ( 'created_at' , 'DESC' ) ; return $ perPage ? $ results -> paginate ( $ perPage ) : $ results -> get ( ) ; }
Retrieve all records.

@param array $related Related object to include.
@param integer $perPage Number of records to retrieve per page. If zero the whole result set is returned.
@return \Illuminate\Database\Eloquent\Model
Retrieve all records .