Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Log Db Laravel Package

yoeriboven/laravel-log-db

Store Laravel application logs in the database instead of files. This package adds a database log channel that saves messages, levels, context and timestamps to a queryable logs table, so you can browse, filter and search your logs directly from your app or admin panel.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for observability: 3.0 is a maintenance-only release (Laravel 13 support; nothing new functionally), so it neither strengthens nor weakens the core value proposition — writing Laravel log entries to a database table instead of (or alongside) files. The decision it informs is unchanged: adopt a ~single-purpose package rather than build a custom Monolog channel, Log model, and migration in-house.
  • Platform baseline / upgrade sequencing: this is the decision 3.0 actually forces. The package now requires Laravel 12 or 13 and explicitly drops Laravel 9, 10, and 11 as EOL. If our upgrade roadmap targets Laravel 12/13, this package stays on the path; if any product surface is pinned to 9–11, that surface must stay on 2.x and will stop receiving updates — a concrete line item in upgrade planning.
  • Support/ops tooling roadmap: database-backed logs are queryable and joinable to users/tenant tables, which enables in-app log viewers, per-customer error lookup during ticket triage, and filtering by user ID — features we would otherwise buy from a log SaaS or defer.
  • Cost/architecture trade-off on logging spend: an argument for deferring a paid log aggregator on low-to-moderate-volume apps, freeing budget for higher-value work, at the cost of owning retention and DB capacity.
  • Use cases this fits: internal admin panels, small-to-mid SaaS apps, single-tenant deployments, and staging environments where "search logs in the UI" beats "SSH and grep."

When to Consider This Package

Adopt when:

  • The application runs Laravel 12 or 13 (mandatory for 3.0 — on Laravel 9/10/11 you are limited to the 2.x line, which is now legacy).
  • Log volume is low to moderate and the app already runs a healthy relational database with headroom for extra inserts per request.
  • The primary need is human-readable, filterable log access for support/ops/engineering, not machine-driven alerting.
  • You are willing to own the operational tail: a pruning/retention job, index and table-size monitoring, and a policy for PII that would otherwise never touch the primary database.
  • A quick spike is acceptable — the integration surface is small (log channel config plus a migration), so the cost of trying and reverting is low.

Look elsewhere when:

  • Throughput matters. One database write per log line adds write pressure and contention on the primary; high-traffic services should log to files/stdout and ship to a dedicated backend (Sentry, Nightwatch, Datadog, Fluent Bit).
  • Compliance or retention requirements are strict — co-locating logs with application data expands your PII scope and backup footprint.
  • You need alerting, tracing, or correlation out of the box; this is a storage channel, not an observability platform.
  • You are not yet on Laravel 12+ and cannot upgrade soon — treat 2.x as frozen and plan the upgrade before adopting.

How to Pitch It (Stakeholders)

To executives: a small, low-risk package that puts application errors and logs directly into our existing database so support and engineering can search them in-app, without a new SaaS contract. The 3.0 release is housekeeping — it adds Laravel 13 compatibility and drops Laravel versions that are already end-of-life — so the cost of staying current is a single dependency bump, but only for products already on Laravel 12 or 13. Anything still on 9–11 needs its upgrade scheduled, or it stays pinned to an unmaintained 2.x.

To engineering: version 3.0 is a support-matrix change, not a feature release: adds Laravel 13, drops 9/10/11. No API or behavior changes are described. The trade-offs are the ones inherent to the package — a write per log entry against the primary database, and retention/pruning plus PII scrubbing are our responsibility, not the package's. Recommended posture: adopt on Laravel 12/13 projects with modest log volume, pair with a file/stdout channel for anything high-throughput, and add a pruning job on day one.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator