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.
What you get
- Saved queries with typed variables such as
{since}and{status}, bound as parameters - Table results with CSV export, and line, bar or pie charts drawn as SVG on the server
- Dashboards of several queries with shared variables
- Scheduled checks every 5 minutes, hour or day, with mail alerts
- An audit log of every run, with who ran it
Three layers of safety
- A dialect-aware tokenizer allows one SELECT or WITH statement and refuses writes, INTO and a second statement.
- The database's own read-only transaction refuses writes [1].
- A check refuses a connection whose user can write.
Limits to know
- Closed by default: every page is a 403 outside the local environment until you define the gates [2].
- It is not a sandbox, and it does not hide columns. Grant the read-only user only the tables your team should see.
- Slack alerts are implemented but untested against real Slack.
Install
composer require amjadiqbal/laravel-sql-dashboard php artisan migrate MIT licensed. Needs PHP 8.3+ and Laravel 12 or 13. Checks use the Laravel scheduler [3]. Source on GitHub.