ok
Direktori : /home2/selectio/www/limpiar.in.net/updates/app/Http/Controllers/Api/V2/ |
Current File : //home2/selectio/www/limpiar.in.net/updates/app/Http/Controllers/Api/V2/SubCategoryController.php |
<?php namespace App\Http\Controllers\Api\V2; use App\Http\Resources\V2\CategoryCollection; use App\Models\Category; class SubCategoryController extends Controller { public function index($id) { return new CategoryCollection(Category::where('parent_id', $id)->get()); } }