bastinald/laravel-livewire-loader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bastinald/laravel-livewire-loader

最新稳定版本:2.2.2

Composer 安装命令:

composer require bastinald/laravel-livewire-loader

包简介

Laravel Livewire global loading spinner.

README 文档

README

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

  • Bootstrap 5 must be installed via webpack first

Installation

Require the package:

composer require bastinald/laravel-livewire-loader

Add the livewire:loader component to your app layout view:

<livewire:loader/>
<livewire:scripts/>
<script src="{{ asset('js/app.js') }}"></script>

Require ../../vendor/bastinald/laravel-livewire-loader/resources/js/loader in your app javascript file:

require('@popperjs/core');
require('bootstrap');
require('../../vendor/bastinald/laravel-livewire-loader/resources/js/loader');

Publishing Assets

Custom Config

Customize the loader configuration by publishing the config file:

php artisan vendor:publish --tag=laravel-livewire-loader:config

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:

php artisan vendor:publish --tag=laravel-livewire-loader:views

Now edit the view file inside resources/views/vendor/laravel-livewire-loader. The package will use this view to render the component.

统计信息

  • 总下载量: 1.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 25
  • Watchers: 1
  • Forks: 7
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-11