File manager - Edit - /var/www/html/spdc/api/app/Http/Controllers/ShelterHistoricController.php
Back
<?php namespace App\Http\Controllers; use App\Http\Requests\ShelterHistoricRequest; use App\Http\Services\ShelterHistoricService; use App\Models\ShelterHistoric; use Illuminate\Http\Request; class ShelterHistoricController extends Controller { private ShelterHistoricService $service; public function __construct() { $this->service = new ShelterHistoricService(); } public function historicsByShelter(string $id) { $response = $this->service->historicsByShelter($id); return response()->json($response->data, $response->code); } public function store(ShelterHistoricRequest $request) { $response = $this->service->store($request); return response()->json($response->data, $response->code); } public function show($id) { $response = $this->service->show($id); return response()->json($response->data, $response->code); } public function getHistoricTypes() { $response = $this->service->getTypes(); return response()->json($response->data, $response->code); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings