File manager - Edit - /var/www/html/ciosp/api/app/Http/Controllers/VehicleCollectionGuideController.php
Back
<?php namespace App\Http\Controllers; use App\Http\Requests\VehicleCollectionGuideRequest; use App\Http\Services\VehicleCollectionGuideService; use App\Models\VehicleCollectionGuide; class VehicleCollectionGuideController extends Controller { private VehicleCollectionGuideService $vehicleCollectionGuideService; public function __construct() { $this->vehicleCollectionGuideService = new VehicleCollectionGuideService; } public function index() { $response = $this->vehicleCollectionGuideService->index(); return response()->json($response->data, $response->code); } public function store(VehicleCollectionGuideRequest $request) { $response = $this->vehicleCollectionGuideService->store($request); return response()->json($response->data, $response->code); } public function show(VehicleCollectionGuide $vehicleCollectionGuide) { $response = $this->vehicleCollectionGuideService->show($vehicleCollectionGuide); return response()->json($response->data, $response->code); } public function update(VehicleCollectionGuideRequest $request, VehicleCollectionGuide $vehicleCollectionGuide) { $response = $this->vehicleCollectionGuideService->update($request, $vehicleCollectionGuide); return response()->json($response->data, $response->code); } public function destroy(VehicleCollectionGuide $vehicleCollectionGuide) { $response = $this->vehicleCollectionGuideService->destroy($vehicleCollectionGuide); return response()->json($response->data, $response->code); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings