예제 #1
0
 public function getPageByName($name)
 {
     return Page::with('textblocks', 'galleries')->where('name', $name)->first();
 }
예제 #2
0
 public function showPage($pageId)
 {
     $page = Page::with('textblocks', 'galleries')->findOrFail($pageId);
     return view('vendor.edible.showpage')->with(compact('page'));
 }