File manager - Edit - /var/www/html/spdc/api/app/Http/Controllers/ShelterFamilyController.php
Back
<?php namespace App\Http\Controllers; use App\Http\Requests\ShelterFamilyRequest; use App\Http\Services\ShelterFamilyService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class ShelterFamilyController extends Controller { private ShelterFamilyService $service; public function __construct() { $this->service = new ShelterFamilyService(); } public function index() { $response = $this->service->index(); return response()->json($response->data, $response->code); } public function show(string $id) { $response = $this->service->show($id); return response()->json($response->data, $response->code); } public function store(ShelterFamilyRequest $request) { $response = $this->service->store($request); return response()->json($response->data, $response->code); } public function update(ShelterFamilyRequest $request, string $id) { $response = $this->service->update($request,$id); return response()->json($response->data, $response->code); } public function checkExistingAdress(Request $request) { $response = $this->service->checkExistingAdress($request); return response()->json($response->data, $response->code); } public function getExistingAdressIndicator(Request $request) { $response = $this->service->getExistingAdressIndicator($request); return response()->json($response, JsonResponse::HTTP_OK); } public function getBooleanIndicators() { $response = $this->service->getBooleanIndicators(); return response()->json($response, JsonResponse::HTTP_OK); } public function getAffectedFamilies() { $response = $this->service->getAffectedFamilies(); return response()->json($response->data, $response->code); } public function getHealthCounters() { $response = $this->service->getHealthCounters(); return response()->json($response->data, $response->code); } public function getHealthList() { $response = $this->service->getHealthList(); return response()->json($response->data, $response->code); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings