/** * Display the specified resource. * * @param string $slug * * @return \Illuminate\View\View */ public function show($slug) { $work = $this->repository->findBy('slug', $slug); $works = $this->repository->fetch(1, 30, ['*'], [], ['id' => 'DESC']); return view('frontend.pages.works.show', compact('work', 'works')); }
/** * Display the specified resource. * * @param string $slug * * @return \Illuminate\View\View */ public function show($slug) { $work = $this->repository->findBy('slug', $slug); $works = $this->repository->all(); return view('frontend.pages.works.show', compact('work', 'works')); }
/** * Display the specified resource. * * @param string $slug * * @return \Illuminate\View\View */ public function show($slug) { $post = $this->post->findBy('slug', $slug); return view('frontend.pages.blog.show', compact('post')); }