Laravel Adapter
The Laravel adapter bridges ADP Kernel and API into Laravel 11.x / 12.x via a service provider with auto-discovery.
Installation
composer require app-dev-panel/adapter-laravelThe package is auto-discovered via extra.laravel.providers in composer.json — no manual registration needed.
Configuration
Publish the configuration file:
php artisan vendor:publish --provider="AppDevPanel\Adapter\Laravel\AppDevPanelServiceProvider"This creates config/app-dev-panel.php:
return [
'enabled' => env('APP_DEV_PANEL_ENABLED', env('APP_DEBUG', true)),
'storage' => [
'path' => storage_path('debug'),
'history_size' => 50,
],
'collectors' => [
'request' => true,
'exception' => true,
'log' => true,
'event' => true,
'database' => true,
'cache' => true,
'mailer' => true,
'queue' => true,
'code_coverage' => false, // opt-in; requires pcov or xdebug
// ... all collectors enabled by default
],
'ignored_requests' => ['/debug/api/**', '/inspect/api/**'],
'ignored_commands' => ['completion', 'help', 'list', 'debug:*', 'cache:*'],
'api' => [
'enabled' => true,
'allowed_ips' => ['127.0.0.1', '::1'],
'auth_token' => env('APP_DEV_PANEL_TOKEN', ''),
],
];Collectors
Supports all Kernel collectors plus Laravel-specific data capture via event listeners: Eloquent queries, cache operations, mail, queue jobs, HTTP client requests, translator lookups, and Redis commands (via Redis::listen()).
Translator Integration
The adapter automatically decorates Laravel's Translator service with LaravelTranslatorProxyAppDevPanel\Adapter\Laravel\Proxy\LaravelTranslatorProxyDecorates Laravel's Translator to feed translation lookups to TranslatorCollector. via $app->extend('translator'). All __('key'), trans(), and Lang::get() calls are intercepted. Laravel's dot-notation keys (group.key) are parsed into category and message. See Translator for details.
Database Inspector
LaravelSchemaProviderAppDevPanel\Adapter\Laravel\Inspector\LaravelSchemaProviderProvides database schema inspection via Laravel's Illuminate\Database\Connection. provides database schema inspection via Illuminate\Database\Connection. Falls back to NullSchemaProviderAppDevPanel\Adapter\Laravel\Inspector\NullSchemaProviderNo-op schema provider for when no database is configured. when no database is configured.