🔁Destroy Request
this method returns RedirectResponse or JsonResponse based on the request type. and we get the request type by check if the route has splade
middleware or not.
this method accept some arguments:
model
the model you want to getmessage
the message you want to return with the responseredirect
the redirect route you want to redirect toapi
if you want to return JsonResponse or not
Last updated