write test for azmayesh type entity

This commit is contained in:
2024-11-17 14:13:25 +03:30
parent 117bf0269e
commit a84b1f9469
14 changed files with 588 additions and 9 deletions

View File

@@ -46,9 +46,7 @@ class AzmayeshTypeController extends Controller
public function fields(AzmayeshType $azmayeshType): JsonResponse
{
$fields = $azmayeshType->azmayeshFields->select('id', 'name', 'unit', 'type', 'option');
return $this->successResponse($fields);
return $this->successResponse($azmayeshType->azmayeshFields);
}
public function store(StoreRequest $request): JsonResponse