Small, focused Composer packages for the jobs every Laravel app ends up needing: product tours, toasts, dialogs, a command palette, data tables, sliders and private media viewing, plus developer tools for local package work, faster test databases, OPcache on deploy, MySQL health checks, webhook replay, feature flags, a notification inbox, browser push, Redis health checks, first-party web analytics, A/B experiments on feature flags and a read-only SQL dashboard. Each one is MIT licensed, installed with one command and driven from PHP.
Adding Driver.js to a Laravel app usually means hand-writing a script for each page, remembering who has already seen the tour, and wiring it to Livewire yourself.
You define tours and steps in PHP, put <x-driver-js> in the view, and start a tour from a button, Alpine, Livewire or JavaScript. once() shows a tour only the first time a visitor sees it, with no JavaScript to write and no npm build step.
Tours and steps built in PHP with Driver.js's own option names
Invalid sides, alignments, buttons and hook names rejected before they reach the browser
once() auto-starts a tour only the first time a visitor sees it
Start a tour from a button, Alpine, a Livewire component or JavaScript
Sonner is the toast library behind shadcn/ui, but it is a React component, so a Blade or Livewire app cannot use it directly.
Call toast() in a controller or Livewire action and put <x-sonner /> in your layout. A plain JavaScript port of Sonner's Toaster shows the toasts with Sonner's own stylesheet, with no npm install and no build step.
toast() helper and Sonner facade that flash toasts to the session
Sonner's stacking, animations, swipe-to-dismiss and themes
Toasts from Livewire actions appear in the same response
Browser API with toast(), toast.success(), toast.promise(), toast.loading() and toast.dismiss()
Adding the ninja-keys command palette to a Laravel app by hand means writing a script per layout, building the action list in JavaScript, and tracking which actions each user is allowed to see.
You register actions in PHP, hide the ones a user may not use with your Gate abilities, and render the palette with <x-ninja-keys />. ninja-keys 1.2.2 is bundled and self-hosted, so there is no JavaScript to write and no npm build step.
Actions built in PHP, with route() and href() for navigation
->can() runs Gate abilities on the server, so hidden actions never reach the browser
define() callbacks run at render time with the current user and request
Submenus from parent and children ids, or from nested arrays
Showing a popup after a controller redirects, or asking for confirmation before a delete button runs, usually means writing your own JavaScript and passing data through the session by hand.
Queue popups from a controller and they show on the next page, even after more than one redirect. A data-swal-confirm attribute puts a confirm dialog in front of any link, button or form, and Livewire and Alpine can show popups without a page load. Livewire's existing wire:confirm opens a SweetAlert2 dialog with no markup change, and await $swal.confirm() returns the answer.
Flash one or several popups from a controller; they show in order on the next page
Popups survive more than one redirect
data-swal-confirm on links, buttons, forms, wire:click and wire:submit
Livewire's wire:confirm and wire:confirm.prompt open SweetAlert2 dialogs with no markup change; opt out with 'livewire_confirm' => false or data-swal-native
A data table over a large Eloquent query needs search, sort and pagination on the server, plus a data endpoint that must not let the browser choose which model or columns to read. Writing that route, controller and JavaScript for every table is repetitive and easy to get wrong.
You build the grid from your own query in PHP and echo it in Blade. Grid.js fetches one page at a time from a built-in endpoint that only runs the query and columns sealed in an encrypted token, with no route, controller or JavaScript to write.
Keeps your query: where clauses, scopes, joins, eager loads and default order
Search (LIKE, relation columns included), sort and LIMIT/OFFSET pagination run in the database
Encrypted grid token bound to the signed-in user or guest session and valid for 720 minutes; the endpoint never takes a model or column name from the browser
Built-in date, datetime, number, currency, boolean and link formats, all escaped
To develop a package inside the app that uses it, you add a path repository to composer.json, require the package at @dev, and later undo both and restore the constraint you had. Done by hand, a failed install leaves composer.json half edited and the old constraint is easy to lose.
laralink:dev links a package from a local folder or a Git repository through a symlinked Composer path repository, so every edit shows up in the app immediately. laralink:publish puts back the constraint the package had before and installs the released version.
Link from a local folder (symlinked, or copied with --copy) or any Git URL and branch
The path repository goes first in composer.json, so it wins over Packagist
Checks the package's PHP and Laravel constraints against your app before changing anything
Restores composer.json and removes the new link or clone if Composer cannot install the package
RefreshDatabase runs migrate:fresh, plus your seeders if you seed, once in every test process: every single test you run while you work, every --parallel worker and every CI job. On a real app that is hundreds of CREATE TABLE statements before the first assertion.
The first test process migrates and seeds as usual and saves the database as a snapshot. Every process after that restores the snapshot, until a migration, seeder or factory changes. Your tests, factories and assertions do not change.
Drop-in traits for RefreshDatabase and LazilyRefreshDatabase, for PHPUnit and Pest
Seeders run once and the seeded database is what gets saved
Snapshot key covers migrations (including package paths), seeders and factories, the driver and the migrate:fresh options
The key uses file names and contents, so a snapshot cached in CI matches on every runner
With opcache.validate_timestamps=0, the recommended production setting, a Laravel app keeps serving stale bytecode after a deploy until the process pool restarts. Resetting OPcache from php artisan does not fix it, because the CLI and the FPM worker pool do not share the same OPcache.
Kiln adds kiln:clear, kiln:warm, kiln:status and kiln:config, plus an optional route that runs the clear or warm inside an FPM worker. The route only accepts temporary signed URLs, and clear and warm are POST-only.
Four Artisan commands: kiln:clear, kiln:warm, kiln:status and kiln:config
kiln:warm compiles files with opcache_compile_file(), which does not run their top-level code
Optional HTTP route that clears or warms OPcache inside an FPM worker
The route refuses any signed URL without an expiry, even if the signature is valid
Showing an uploaded file in Laravel usually means a compromise. storage:link makes the file public to anyone with the URL, a plain download route breaks video seeking and makes large PDFs load in full, and the browser's own PDF viewer looks and behaves differently in every browser.
Files stay on a private disk. Blade and Livewire components render a pdf.js viewer and a Video.js player, and each file is served through a signed URL that expires, answers Range requests and, when someone is signed in, only works for that user.
pdf.js viewer with page navigation, zoom, text search, full screen and an optional download button
Lazy PDF thumbnails: through Range requests the browser fetches only what each page needs
Video.js player for video and audio, with seeking over Range requests
HLS from a private disk: playlists are rewritten so every segment and key is a signed URL
Dropping Swiper into a Laravel app is quick, but a Livewire update morphs its markup back to the server HTML: arrows double up, the slide jumps back to the start, and after wire:navigate it never starts. The images also come from storage or models, not a hard-coded array, and carousel accessibility is easy to get wrong.
Navigation, pagination, thumbs, autoplay and effects are typed props on <x-swiper>. Slides come from your own markup, a collection of models or Spatie Media items, or a folder on a storage disk, and a carousel is rebuilt only when its content changed, on the same slide.
Typed, validated props for navigation, pagination, thumbs, autoplay, effects and breakpoints
Unchanged carousels survive Livewire updates; changed ones are rebuilt on the same slide
Starts again after wire:navigate, with no duplicate scripts
Image slides from paths, URLs, Eloquent models, Spatie Media items or a storage disk folder, private disks included
MySQL already records which indexes are never read, which statements scan whole tables and which tiny query runs thousands of times, but nothing in a Laravel app reads that for you. db:show lists sizes and db:monitor counts connections; neither tells you which index to drop or which relation to eager-load.
The advisor reads information_schema, performance_schema and server status, and reports each problem with its severity, the numbers behind it and, where one applies, the fix as SQL and as a Laravel migration or Eloquent snippet. It never runs a fix: every statement it sends is a read.
Index checks: unused, duplicate and left-prefix indexes, and *_id columns or foreign keys with no index
Query checks from performance_schema: full table scans, top statements by total time, and N+1 suspects
Table and server checks: missing primary keys, large and fragmented tables, stale statistics, buffer pool, disk temp tables and connection headroom
Each fix shown as SQL and as a Laravel migration; unused indexes are hidden first (INVISIBLE on MySQL, IGNORED on MariaDB)
spatie/laravel-webhook-client stores every webhook your app accepts in the webhook_calls table, but has no screen to look at them. When your process job throws on a real queue worker, the call keeps no exception and the failure only exists in failed_jobs, with nothing that points back to the webhook.
An unofficial, independent dashboard for spatie/laravel-webhook-client (not made or endorsed by Spatie). It lists every stored call with its status, links failed_jobs rows back to their calls, shows payloads and headers with secrets masked, and replays one call or every failure from the dashboard or artisan.
List and filter stored calls by config, status, date range, or a search inside the payload and URL
Failures include process jobs that failed on a queue worker, linked from failed_jobs without unserializing them
Secrets masked in payloads, headers and URLs, and inside exception messages, stack traces and failed_jobs text
Replay one call, the selected calls, or every failure: the call's process_webhook_job is dispatched again
laravel/pennant has no UI. The existing ones are a Filament plugin and a Nova tool, so an app on neither has nothing but tinker to see who gets a feature, switch it for one user, or roll it out to a share of users.
An unofficial, independent dashboard for laravel/pennant (not made, endorsed or supported by Laravel). It is plain Blade with forms, so it needs no Filament, Nova or Livewire: install it, run the migration, define a gate and open /pennant.
Lists every feature in a Pennant store: closures, class-based features in app/Features, and stale stored features
Turn a feature on or off for one user, team, any Eloquent model, Feature::globally() or a raw scope string
Turn a feature on or off for everyone with Pennant's own activateForEveryone()
Sticky percentage rollouts: each scope gets a fixed bucket, so raising 25% to 50% only adds scopes
Mailpit catches your mail, but push, Slack, Teams, Telegram, Discord and SMS notifications in development are either really sent or not seen at all. And Notification::fake() never calls your toX() methods, so a broken Slack block or a missing chat id still passes your tests.
In the environments you allow, the package cancels each non-mail notification at Laravel's NotificationSending event, builds the message with the channel's own toX() method and route, and stores it for an inbox with look-alike previews. NotificationInbox::fake() does the same in memory and gives your tests assertions on the real payloads.
Catches web push, FCM, APNs, Expo, OneSignal, Pushover, Slack, Teams, Telegram, Discord, SMS channels and broadcast; mail and database pass through
Look-alike previews: phone push alert, Slack Block Kit, Teams Adaptive Card, Telegram bubble, Discord embed, SMS thread with segment count
Builds each message with the real toX() method, so a notification that would fail to send fails here first
NotificationInbox::fake() with assertions such as assertCaptured, assertCapturedOn, assertCapturedFor and assertNoCaptureErrors
laravel-notification-channels/webpush sends web push from Laravel, but everything in the browser is left to you: the service worker, the Push API subscribe and unsubscribe calls, the permission prompt, saving the subscription for the signed-in user, and keeping it alive when the browser rotates it. Ask for permission on page load and many users click Block, and a blocked site cannot ask again.
This package builds on laravel-notification-channels/webpush; it is not made or endorsed by the laravel-notification-channels maintainers. It adds a Blade component that renders a small web component: the page asks first, and only Allow opens the browser's own permission dialog. The subscription is saved and deleted through the channel's own updatePushSubscription() and deletePushSubscription(), and a service worker served from the site root shows the channel's normal and declarative messages. php artisan push:test sends a real push and shows what each push service answered.
Blade subscribe button for signed-in users with a two-step prompt: a card you write first, the browser dialog only after Allow
States for subscribed (with Turn off), blocked, no push support, no HTTPS, and an Add to Home Screen note for iPhone and iPad (untested)
Service worker at /webpush-sw.js that shows WebPushMessage and DeclarativeWebPushMessage pushes and sends the click to data.url or navigate
Saves, deletes and rotates subscriptions through the channel's updatePushSubscription() and deletePushSubscription()
When a Redis queue shares a server with your cache under maxmemory-policy allkeys-lru, Redis can delete the list that holds your queued jobs. No exception, no failed job, nothing in the log. php artisan cache:clear runs FLUSHDB, so a cache in the same database as your queue empties both. Memory graphs show none of this, because they do not know what your Laravel app keeps where.
The advisor reads your cache, queue, session and Horizon config to learn which Redis connection holds what, then reads INFO, a SCAN sample of keys and a few queue lengths, and reports each problem with its severity, the numbers behind it, and the fix as Redis config or a command and in Laravel terms. It never runs a fix: every command passes one guard that only allows reads.
Queue checks: jobs open to an allkeys-* eviction policy, backlog and the oldest job's wait, expired reservations, and Horizon trim settings and its shared default prefix
Key checks: queues or sessions that cache:clear would delete, colliding or default key prefixes, keys without a TTL, and big keys
Server checks: persistence off under queues or sessions, a failed last save, no maxmemory or a server close to it, fragmentation and swap, connections that do not answer
Session check: session TTLs longer than SESSION_LIFETIME, sessions that never expire, and sessions open to eviction
A hosted analytics script sends every visitor's data to someone else's servers and usually needs a cookie banner. The Laravel packages that keep data at home tend to log raw requests, or cover one piece (attribution, or request logs) without visits, sources and a dashboard.
A middleware on the web group records each successful HTML page as a pageview and groups pageviews into visits with their landing page, referrer, UTM tags, browser, OS and device. Everything goes into two tables in your own database, batched and written after the response, and a gated Blade dashboard reads it back. The package makes no network calls.
Pageviews and visits: a visit ends after 30 idle minutes or when the visitor arrives from a new campaign or another site
Sources: referrer host and URL without its query string, utm_source/medium/campaign/term/content, ?ref=, and channels such as Organic search, Social, Email and Paid; nothing else from the query string is kept
Custom events from PHP (Analytics::track) and from the browser (@firstPartyAnalytics, analytics.track and data-analytics-event clicks)
Conversion goals and ordered funnels defined in config, with step-by-step drop-off
Pennant decides who gets a feature, but an A/B test also needs to know who actually saw each variant, who converted, and whether the difference is more than noise. Pennant records none of that, and it has no way to say when there is enough data to read a result.
An unofficial, independent package for laravel/pennant (not made or endorsed by Laravel). Each experiment is a Pennant feature whose value is the variant name. It counts only scopes that were shown a variant, records conversion goals from PHP or JavaScript, and has a plain Blade results page that holds back verdicts until there is enough data and the planned sample is reached.
Experiments are Pennant features: two or more variants with whole-number weights, the first one is the control
Sticky assignment for users, teams, any scope and guests (a random id in a first-party, http-only cookie)
Counts only exposed scopes, once each: expose() or @variant records, variant() does not
Conversion goals from PHP or from JavaScript endpoints with CSRF, a same-origin check and a rate limit, once per scope and goal
A Laravel app has no place where a team can save a SQL query, rerun it with new dates and see the numbers as a chart. People end up passing queries around in chat and running them with a desktop client on a login that can write, or running a separate BI server next to the app.
A self-hosted SQL dashboard inside your Laravel app. Queries run only on a separate connection whose database user has been checked to be read-only, one SELECT or WITH statement at a time, inside a read-only transaction (a read-only file on SQLite), with a statement timeout and a row limit. Plain Blade pages with server-drawn SVG charts: no JavaScript library and no CDN.
Saved queries with a name, description and owner, shared with the team or private to the owner
Typed {variables} (text, whole number, number, date, date and time, yes/no, one of a list), validated and bound as parameters; dates accept today, yesterday or -7 days
Result tables, CSV export with formula cells neutralised, and line, bar and pie charts picked from the result's shape or chosen per query
Dashboards of several queries with one form for the variables they share
Need one of these built into your app, or something custom?
Integration, a custom package, or a whole Laravel feature, built and tested the same way as these. Tell me what you need and get a plan and a quote, free.