app/Http/Controllers/CategoryController.php
/**
     * Display a listing of the resource.
     *
     * @return JsonResponse
     */
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        return Helper::response_with_data(new CategoryResourceCollection(Category::all()), false);
    }
public function index ( ) { return Helper :: response_with_data ( new CategoryResourceCollection ( Category :: all ( ) ) , false ) ; }
Display a listing of the resource.
Display a listing of the resource .