Beispiel #1
0
 /**
  * Update the given category with new titles.
  * 
  * @param  Category $category
  * @return Category
  */
 private function updateCategory($category)
 {
     return $this->catRepo->attachByQuery($category->id, $category->query, $category->limit);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if ($this->repo->delete($id)) {
         return Response::json(trans('dash.deleteCatSuccess'), 200);
     }
 }
 public function __construct()
 {
     $category = App::make('Category');
     parent::__construct($category);
 }