public getAll ( ) : Illuminate\Database\Eloquent\Collection | ||
리턴 | Illuminate\Database\Eloquent\Collection |
/** * Shows all templates. * * @return \Illuminate\View\View */ public function index() { $templates = $this->templateRepository->getAll(); return view('admin.templates.listing', ['title' => Lang::get('templates.manage'), 'templates' => $templates->toJson()]); }
/** * Shows all projects. * * @param TemplateRepositoryInterface $templateRepository * @param GroupRepositoryInterface $groupRepository * @param Request $request * * @return \Illuminate\View\View */ public function index(TemplateRepositoryInterface $templateRepository, GroupRepositoryInterface $groupRepository, Request $request) { $projects = $this->repository->getAll(); return view('admin.projects.listing', ['is_secure' => $request->secure(), 'title' => Lang::get('projects.manage'), 'templates' => $templateRepository->getAll(), 'groups' => $groupRepository->getAll(), 'projects' => $projects->toJson()]); }