successResponse($data); } /** * Store a newly created resource in storage. */ public function store(Request $request) { // } /** * Display the specified resource. */ public function show(Azmayesh $azmayesh): JsonResponse { return $this->successResponse($azmayesh->load('azmayeshSamples')); } /** * Update the specified resource in storage. */ public function update(Request $request, Azmayesh $azmayesh) { // } /** * Remove the specified resource from storage. */ public function destroy(Azmayesh $azmayesh): JsonResponse { $azmayesh->delete(); return $this->successResponse(); } }