63 lines
1.1 KiB
Plaintext
63 lines
1.1 KiB
Plaintext
<?php
|
|
|
|
namespace $CLASS_NAMESPACE$;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class $CLASS$ extends Controller
|
|
{
|
|
public array $data = [];
|
|
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index(): JsonResponse
|
|
{
|
|
//
|
|
|
|
return response()->json($this->data);
|
|
}
|
|
|
|
/**
|
|
* Store a newly created resource in storage.
|
|
*/
|
|
public function store(Request $request): JsonResponse
|
|
{
|
|
//
|
|
|
|
return response()->json($this->data);
|
|
}
|
|
|
|
/**
|
|
* Show the specified resource.
|
|
*/
|
|
public function show($id): JsonResponse
|
|
{
|
|
//
|
|
|
|
return response()->json($this->data);
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*/
|
|
public function update(Request $request, $id): JsonResponse
|
|
{
|
|
//
|
|
|
|
return response()->json($this->data);
|
|
}
|
|
|
|
/**
|
|
* Remove the specified resource from storage.
|
|
*/
|
|
public function destroy($id): JsonResponse
|
|
{
|
|
//
|
|
|
|
return response()->json($this->data);
|
|
}
|
|
}
|