create panel for azmayesh type crud
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user