File manager - Edit - /var/www/html/spdc/api/app/Http/Controllers/ShelterManagerController.php
Back
<?php namespace App\Http\Controllers; use App\Http\Requests\ShelterManagerRequest; use App\Http\Services\ShelterManagerService; use Illuminate\Http\Request; class ShelterManagerController extends Controller { private ShelterManagerService $service; public function __construct() { $this->service = new ShelterManagerService(); } 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(ShelterManagerRequest $request) { $response = $this->service->store($request); return response()->json($response->data, $response->code); } public function update(ShelterManagerRequest $request, string $id) { $response = $this->service->update($request, $id); return response()->json($response->data, $response->code); } public function destroy(string $id) { $response = $this->service->destroy($id); return response()->json($response->data, $response->code); } public function getAllByShelter(string $id) { $response = $this->service->getAllByShelter($id); return response()->json($response->data, $response->code); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings