{"slug": "a-read-only-sql-dashboard-for-laravel", "title": "A read-only SQL dashboard for Laravel", "summary": "A developer released Laravel SQL Dashboard, an MIT-licensed, self-hosted tool in the spirit of Rails' Blazer that lets teams save parameterized SQL queries, view results as tables and server-rendered SVG charts, build multi-query dashboards with shared variables, and schedule checks every 5 minutes, hour or day with email alerts. Safety relies on three layers: a dialect-aware tokenizer that permits only a single SELECT or WITH statement, the database's own read-only transaction, and a check that refuses connections whose user can write. The tool is closed by default (403 outside the local environment until authorization gates are defined), does not hide columns, and its Slack alerts are implemented but untested against real Slack.", "body_md": "Laravel SQL Dashboard is a self-hosted dashboard in the spirit of Rails' Blazer. Your team saves SQL queries, sees results as tables and charts, and gets alerts. It is built to be safe to leave on. Package page: [docs and demo](https://urlshortly.com/MPYxb).\n\n## \n  \n  \n  What you get\n\n- Saved queries with typed variables such as `{since}` and`{status}` , bound as parameters\n- Table results with CSV export, and line, bar or pie charts drawn as SVG on the server\n- Dashboards of several queries with shared variables\n- Scheduled checks every 5 minutes, hour or day, with mail alerts\n- An audit log of every run, with who ran it\n\n## \n  \n  \n  Three layers of safety\n\n1. A dialect-aware tokenizer allows one SELECT or WITH statement and refuses writes, INTO and a second statement.\n2. The database's own read-only transaction refuses writes [1].\n3. A check refuses a connection whose user can write.\n\n## \n  \n  \n  Limits to know\n\n- Closed by default: every page is a 403 outside the local environment until you define the gates [2].\n- It is not a sandbox, and it does not hide columns. Grant the read-only user only the tables your team should see.\n- Slack alerts are implemented but untested against real Slack.\n\n## \n  \n  \n  Install\n\nMIT licensed. Needs PHP 8.3+ and Laravel 12 or 13. Checks use the Laravel scheduler [3]. [Source on GitHub](https://urlshortly.com/QhKvr).\n\n## \n  \n  \n  References\n\n1. [PostgreSQL: SET TRANSACTION](https://www.postgresql.org/docs/16/sql-set-transaction.html)\n2. [Laravel authorization and gates](https://laravel.com/docs/12.x/authorization)\n3. [Laravel task scheduling](https://laravel.com/docs/12.x/scheduling)", "url": "https://wpnews.pro/news/a-read-only-sql-dashboard-for-laravel", "canonical_source": "https://dev.to/amjadiqbal/a-read-only-sql-dashboard-for-laravel-417e", "published_at": "2026-11-23 15:30:01+00:00", "updated_at": "2026-11-23 15:44:20.088629+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Laravel", "Rails", "Blazer", "PostgreSQL", "Slack", "GitHub"], "also_reported_by": [], "takeaway": "Laravel SQL Dashboard enforces read-only access in three layers—a tokenizer allowing one SELECT or WITH, a read-only database transaction, and a connection check rejecting writable users—but it is not a sandbox and does not hide columns, so grant the read-only user only the tables the team should se", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/a-read-only-sql-dashboard-for-laravel", "markdown": "https://wpnews.pro/news/a-read-only-sql-dashboard-for-laravel.md", "text": "https://wpnews.pro/news/a-read-only-sql-dashboard-for-laravel.txt", "jsonld": "https://wpnews.pro/news/a-read-only-sql-dashboard-for-laravel.jsonld"}}