app/Http/Controllers/Category/CategoryController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $categories = new CategoryCollection(Category::all());
        return $this->showAll($categories);
    }
public function index ( ) { $ categories = new CategoryCollection ( Category :: all ( ) ) ; return $ this -> showAll ( $ categories ) ; }
Display a listing of the resource.
Display a listing of the resource .