ok
Direktori : /home2/selectio/public_html/limpiar.in.net/updates/app/Http/Controllers/Api/V2/ |
Current File : /home2/selectio/public_html/limpiar.in.net/updates/app/Http/Controllers/Api/V2/PolicyController.php |
<?php namespace App\Http\Controllers\Api\V2; use App\Http\Resources\V2\PolicyCollection; use App\Models\Page; use Illuminate\Http\Request; class PolicyController extends Controller { public function sellerPolicy() { return new PolicyCollection(Page::where('type', 'seller_policy_page')->get()); } public function supportPolicy() { return new PolicyCollection(Page::where('type', 'support_policy_page')->get()); } public function returnPolicy() { return new PolicyCollection(Page::where('type', 'return_policy_page')->get()); } }