- Added localization support for API responses in English and Spanish. - Introduced a middleware to set the API locale based on the Accept-Language header. - Updated various exception messages and validation responses to use localized strings. - Created new language files for English and Spanish translations. - Refactored existing code to replace hardcoded messages with localized strings. - Added tests to verify localization functionality and response correctness.
8 lines
183 B
PHP
8 lines
183 B
PHP
<?php
|
|
|
|
namespace App\Domains\Ticket\Exceptions;
|
|
|
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
|
|
|
class TicketNotAvailableException extends NotFoundHttpException {}
|