create panel for azmayesh type crud

This commit is contained in:
2024-11-09 10:52:57 +03:30
parent 6eb7d6c55e
commit fbb4db5e60
5 changed files with 134 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ class AzmayeshSampleController extends Controller
/**
* Display the specified resource.
*/
public function show(AzmayeshSample $azmayeshSample)
public function show(AzmayeshSample $azmayeshSample): JsonResponse
{
return $this->successResponse($azmayeshSample);
}
@@ -67,7 +67,7 @@ class AzmayeshSampleController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(UpdateRequest $request, AzmayeshSample $azmayeshSample)
public function update(UpdateRequest $request, AzmayeshSample $azmayeshSample): JsonResponse
{
$azmayesh = Azmayesh::query()->findOrFail($request->azmayesh_id);
@@ -83,7 +83,7 @@ class AzmayeshSampleController extends Controller
/**
* Remove the specified resource from storage.
*/
public function destroy(AzmayeshSample $azmayeshSample)
public function destroy(AzmayeshSample $azmayeshSample): JsonResponse
{
$azmayeshSample->delete();