Refactor code for consistency and clarity; update seeder comments, enhance error handling, and improve API routes. Added 'original' field to ProductMediaResource and adjusted various formatting issues across multiple files.

This commit is contained in:
Mekan1206
2026-02-20 15:33:29 +05:00
parent a8599d9c79
commit 1e84ceab3c
27 changed files with 314 additions and 51 deletions

View File

@@ -3,9 +3,9 @@
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable;
use Symfony\Component\HttpKernel\Exception\HttpException;
class Handler extends ExceptionHandler
{
@@ -44,7 +44,7 @@ class Handler extends ExceptionHandler
warn(
message: get_class($e),
content: $e->getMessage(),
where: $e->getFile() . ':' . $e->getLine(),
where: $e->getFile().':'.$e->getLine(),
notes: substr($e->getTraceAsString(), 0, 65000),
);
} catch (Throwable $ignored) {