api_logs conflicts with other packages like spatie/laravel-activitylog).laravel/framework constraints in composer.json). Verify compatibility with your Laravel version (e.g., 10.x) to avoid deprecated method calls.created_at, ip_address) for query performance.api_logs table conflict with existing logging tables? If so, can the migration be renamed or customized?spatie/laravel-activitylog, monolog with custom handlers) for feature parity.bootstrap/app.php instead of Kernel.php)./api/v1/users).php artisan vendor:publish) and review schema.Kernel.php (e.g., add LogApiRequest to specific middleware groups).config('api-logs.enabled')) for gradual adoption.throttle, auth) that might alter the request before logging.monolog) is configured for errors (this package logs requests, not errors).LogApiRequest early in the middleware stack (before auth/validation) to capture raw requests. Example:
'api' => [
\App\Http\Middleware\TrustProxies::class,
\Codetech\ApiLogs\Http\Middleware\LogApiRequest::class, // <-- Early
\App\Http\Middleware\Authenticate::class,
// ...
],
api_logs table for support teams.api_logs table structure).laravel-queue).DB::insert with multiple statements).SELECT * FROM api_logs WHERE endpoint = '/users' AND status = 500).How can I help you explore Laravel packages today?