Download the PHP package cliqthemes/log-lens without Composer
On this page you can find all versions of the php package cliqthemes/log-lens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cliqthemes/log-lens
More information about cliqthemes/log-lens
Files in cliqthemes/log-lens
Package log-lens
Short Description Laravel adapter for Log Lens — mount the dashboard and JSON API inside a Laravel app.
License MIT
Informations about the package log-lens
Log Lens for Laravel
Mount the Log Lens dashboard and JSON API inside an existing Laravel application.
This is a thin adapter over cliqthemes/log-lens-core; all parsing, storage, and
API logic lives in the core engine.
Requires PHP 8.2+ and Laravel 10, 11, 12, or 13.
Install
The service provider is auto-discovered and the UI assets ship pre-built, so no
Node build is needed. log-lens:install publishes the assets/config, offers to
import storage/logs, offers a connector for ongoing sync (printing the
schedule line to paste in), offers the zero-key error reporter, and reminds
you about access control. Safe to re-run. Prefer doing it by hand?
Either way, visit /log-lens (see Authorization first —
access is open in local by default).
Authorization
Access is decided by a gate on every route (dashboard and API) — no API key is used in Laravel mode; the host app's auth is the source of truth. The default, with nothing configured, is:
localenvironment → open (any browser on the machine, including an unauthenticated/incognito tab). Convenient for development; be aware of it.- any other environment → denied to everyone (fails safe when deployed).
Restrict it with any one of these:
1. An auth callback in a service provider's boot():
2. A Laravel Gate named viewLogLens (used when no callback is set):
3. Middleware — add auth middleware to config('log-lens.middleware'), e.g.
['web', 'auth'], to redirect guests to login before the gate even runs.
Disabling
Set LOG_LENS_ENABLED=false to unregister the routes entirely — a hard
kill-switch independent of the gate above.
Configuration
config/log-lens.php:
route_prefix(defaultlog-lens) andmiddleware(default['web']).root— where the SQLite database andlogs/,processed/,sources/live (defaultstorage_path('log-lens')).core— engine settings passed through tocliqthemes/log-lens-core(ingested severities, size limits, pagination, connector chunking, SSH defaults, processed-archive retention).core.auth.tokenis intentionally empty.
Documentation
Full documentation: https://docs.log-lens.cliqthemes.com/ — start with the Laravel package guide.
Artisan
Schedule log-lens:sync in the app's console kernel for continuous connector
ingestion.
How it works
The provider registers one route at the prefix that mirrors the standalone front
controller: requests without an api parameter return the SPA shell; requests
with one are translated into a LogLens\Http\LogLensRequest and passed to the
core LogLens\Kernel, whose LogLensResponse becomes a Laravel JSON
response. The SPA calls the API with same-prefix relative URLs, and its assets are
served from public/vendor/log-lens.
MIT licensed. Release history: CHANGELOG.md and releases. Bugs, requests, and security advisories for both packages go to cliqthemes/log-lens.
All versions of log-lens with dependencies
cliqthemes/log-lens-core Version ^0.1
illuminate/console Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
