sarfraznawaz2005/loading
A lightweight Laravel package for adding loading indicators to your app. Easily show spinners or overlays during form submissions, AJAX requests, and page transitions using simple Blade directives and minimal configuration, with support for buttons, links, and custom elements. Keep users informed wh...
sarfraznawaz2005/loading is a small, purpose-built Laravel package that renders a global loading/spinner overlay for page transitions and form submissions. The decision it most directly informs is whether to spend engineering days building an in-house overlay component versus adopting a one-line dependency.Adopt when most of the following hold:
Look elsewhere when:
wire:loading primitives give finer control with no extra dependency.prefers-reduced-motion. Verify before committing.To executives: This is a small, low-risk dependency that makes the product feel faster without backend work. Users on slow connections or heavy admin screens currently get a dead-looking page; a loading overlay tells them the system is working, and it blocks accidental double-clicks that produce duplicate submissions — a common source of support tickets and data cleanup. The cost is a Composer dependency and a short configuration pass, not a rewrite. The 1.4.0 release also confirms support through Laravel 10, so it will not block our framework upgrade path in the near term.
To engineering: One composer require, one config publish, no schema or API changes. The trade-offs to validate are: asset injection style versus our CSP/Vite setup, behavior for Inertia/Livewire routes if we add them, and accessibility of a full-screen overlay. Maintenance is single-maintainer and release cadence is modest, so pin the version, and note that Laravel 11+ support is not yet declared — flag it if our upgrade roadmap goes there within the year. Recommend a short spike on one admin module before rolling out globally.
How can I help you explore Laravel packages today?