card transactions fully tested
This commit is contained in:
@@ -128,19 +128,19 @@ class CardTransactionsController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * DELETE*
|
* DELETE*
|
||||||
// */
|
*/
|
||||||
// public function destroy(LoanRemainingOrder $order): JsonResponse
|
public function destroy(CardTransaction $order): JsonResponse
|
||||||
// {
|
{
|
||||||
// if ($order->user_id != auth()->id()) {
|
if ($order->user_id != auth()->id()) {
|
||||||
// return response()->json(status: 403);
|
return response()->json(status: 403);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// $order->delete();
|
$order->delete();
|
||||||
|
|
||||||
// return response()->json([
|
return response()->json([
|
||||||
// 'message' => __('Successfully deleted'),
|
'message' => __('Successfully deleted'),
|
||||||
// ]);
|
]);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user