예제 #1
0
 /**
  * Show the admin categories index page.
  *
  * @return \Response
  */
 public function getIndex()
 {
     $categories = $this->categories->findAll('order', 'asc');
     return view('admin.categories.list', compact('categories'));
 }
예제 #2
0
 /**
  * Get all the categories to include in the sitemap.
  *
  * @return \Illuminate\Database\Eloquent\Collection|\App\Category[]
  */
 public function getCategories()
 {
     return $this->categories->findAll();
 }