Spaces:
Running
Running
Download app/Http/Controllers/ApiControllers/V1/Frontend/AmenityController.php from lisatthu35/ewa: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Http/Controllers/ApiControllers/V1/Frontend/AmenityController.php
- Command line
-
hf download hf://spaces/lisatthu35/ewa/app/Http/Controllers/ApiControllers/V1/Frontend/AmenityController.php
-
curl -L -o AmenityController.php https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Http/Controllers/ApiControllers/V1/Frontend/AmenityController.php
761 Bytes
| namespace App\Http\Controllers\ApiControllers\V1\Frontend; | |
| use App\Http\Controllers\BaseController; | |
| use App\Services\AmenityServices; | |
| use App\Tranformers\AmenityResource\AmenityDetailResource; | |
| use App\Tranformers\AmenityResource\AmenityListResource; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Support\Facades\DB; | |
| class AmenityController extends BaseController | |
| { | |
| private $amenityServices; | |
| public function __construct(AmenityServices $amenityServices) | |
| { | |
| $this->amenityServices = $amenityServices; | |
| parent::__construct(); | |
| } | |
| public function index(Request $request) | |
| { | |
| $lists = $this->amenityServices->index($request); | |
| return (new AmenityListResource($lists)); | |
| } | |
| } | |