/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { //return $this->repository->findWhere(['owner_id' => \Authorizer::getResourceOwnerId()]); return $this->repository->findWithOwnerAndMember(\Authorizer::getResourceOwnerId()); //return $this->repository->findOwner(\Authorizer::getResourceOwnerId(),$request->query->get('limit')); //return $this->repository->all(); //return $this->repository->with(['client', 'user'])->all(); }
public function index() { #$rtrn = $this->user_repository->skipPresenter()->find(Authorizer::getResourceOwnerId())->projects()->with(['client', 'tasks', 'notes', 'members', 'owner'])->get(); $rtrn = $this->repository->findWithOwnerAndMember(Authorizer::getResourceOwnerId()); #$rtrn = $this->user_repository->find(Authorizer::getResourceOwnerId())->projects()->with(['client', 'tasks', 'notes', 'members', 'owner'])->get(); #return $this->user_repository->find(Authorizer::getResourceOwnerId())->projects()->with(['client', 'tasks', 'notes', 'members'])->get(); return $rtrn; }