コード例 #1
0
ファイル: PageController.php プロジェクト: dan-powell/shop
 /**
  * Show Project
  *
  * Find & return project by ID
  *
  * @returns Illuminate response (JSON & HTTP code)
  */
 public function show($id)
 {
     return $this->pageRepository->show(new Page(), $id, ['sections', 'attachment']);
 }
コード例 #2
0
 /**
  * Show Project
  *
  * Find & return project by ID
  *
  * @returns Illuminate response (JSON & HTTP code)
  */
 public function show($id)
 {
     return $this->projectRepository->show(new Project(), $id, ['sections', 'tags', 'pages']);
 }
コード例 #3
0
 /**
  * Show Tag
  *
  * Find & return project by ID
  *
  * @returns Illuminate response (JSON & HTTP code)
  */
 public function show($id)
 {
     return $this->tagRepository->show(new Tag(), $id, ['projects']);
 }
コード例 #4
0
 /**
  * Show Project
  *
  * Find & return project by ID
  *
  * @returns Illuminate response (JSON & HTTP code)
  */
 public function show($id)
 {
     return $this->restfulRepository->show(new Section(), $id);
 }