FleetCart/Modules/Coupon/Exceptions/CouponUsageLimitReachedException.php
2023-06-11 13:14:03 +01:00

21 lines
421 B
PHP

<?php
namespace Modules\Coupon\Exceptions;
use Exception;
class CouponUsageLimitReachedException extends Exception
{
/**
* Render the exception into an HTTP response.
*
* @return \Illuminate\Http\Response
*/
public function render()
{
return response()->json([
'message' => trans('coupon::messages.usage_limit_reached'),
], 403);
}
}