Download the PHP package nhanifah/laravel-livewire-loader without Composer
On this page you can find all versions of the php package nhanifah/laravel-livewire-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nhanifah/laravel-livewire-loader
More information about nhanifah/laravel-livewire-loader
Files in nhanifah/laravel-livewire-loader
Package laravel-livewire-loader
Short Description Laravel Livewire global loading spinner.
License MIT
Homepage https://github.com/bastinald/laravel-livewire-loader
Informations about the package laravel-livewire-loader
Laravel Livewire Loader
This package adds a global loading spinner to your Laravel Livewire project. The loading spinner shows when any Livewire action is being executed. This keeps users engaged as they won't become frustrated by page hanging due to network latency. It also keeps your code much cleaner, as you won't be having to add loading spinners all over the place.
Documentation
- Requirements
- Installation
- Publishing Assets
- Custom Config
- Custom View
Requirements
- Bootstrap 5 must be installed via webpack first
Installation
Require the package:
Add the livewire:loader
component to your app layout view:
Require ../../vendor/bastinald/laravel-livewire-loader/resources/js/loader
in your app javascript file:
Publishing Assets
Custom Config
Customize the loader configuration by publishing the config file:
Now you can easily change things like the show delay and animation speed.
Custom View
Use your own loader view by publishing the view file:
Now edit the view file inside resources/views/vendor/laravel-livewire-loader
. The package will use this view to render the component.