File manager - Edit - /var/www/html/ciosp/api/app/Http/Controllers/IncidentController.php
Back
<?php namespace App\Http\Controllers; use App\Models\Incident; use Illuminate\Http\Request; class IncidentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\JsonResponse */ public function index() { $incident = Incident::all(); return response()->json($incident, 200); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // } /** * Display the specified resource. * * @param \App\Models\Incident $incident * @return \Illuminate\Http\Response */ public function show(Incident $incident) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\Incident $incident * @return \Illuminate\Http\Response */ public function update(Request $request, Incident $incident) { // } /** * Remove the specified resource from storage. * * @param \App\Models\Incident $incident * @return \Illuminate\Http\Response */ public function destroy(Incident $incident) { // } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings