Skip to main content

Support

Debugging Tools

bash

# Install Laravel Debugbar
composer require barryvdh/laravel-debugbar --dev
# Enable debug mode
APP_DEBUG=true

Error Handling

php

// app/Exceptions/Handler.php
public function render($request, Throwable $exception)
{
if ($exception instanceof ValidationException) {
return response()->json([
'message' => 'Validation failed',
'errors' => $exception->errors()
], 422);
}
return parent::render($request, $exception);
}

Testing Support

bash
# Run tests
php artisan test
# Run specific test suite
php artisan test --testsuite=Feature
# Generate test coverage
php artisan test --coverage