コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * 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'));
 }
コード例 #3
0
 /**
  * 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'));
 }