承接 sarfraznawaz2005/loading 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sarfraznawaz2005/loading

最新稳定版本:1.4.0

Composer 安装命令:

composer require sarfraznawaz2005/loading

包简介

Laravel package to add loading indicator to pages while page is loading.

README 文档

README

Latest Version on Packagist Total Downloads

Laravel Loading Indicator

Introduction

Laravel package to add loading indicator to pages while page is loading. Loading indicator is automatically removed after page has fully loaded.

Behind the scene, middleware is used to inject needed HTML/CSS/JS before </body> tag to show and hide the loading indicator accordingly.

Loading indicators are via to awesome CSSPIN project.

Requirements

  • PHP >= 7
  • Laravel 5

Installation

Install via composer

composer require sarfraznawaz2005/loading

For Laravel < 5.5:

Add Service Provider to config/app.php in providers section

Sarfraznawaz2005\Loading\ServiceProvider::class,

Publish package's config file by running below command:

$ php artisan vendor:publish --provider="Sarfraznawaz2005\Loading\ServiceProvider"

It should publish config/loading.php config file.

Usage

Simply add to \Sarfraznawaz2005\Loading\Http\Middleware\LoadingMiddleware::class to app/Http/Kernel.php either in global middleware section or route section.

Add in global section if you want loading indicator on all pages automatically or add it to route middleware section if you want to add indictor to certain pages only via middleware method in routes.

Visit any page and you should see loading indicator at middle of the page while page is loading.

Check config file for options.

Credits

License

Please see the license file for more information.

统计信息

  • 总下载量: 10.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 48
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 48
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-25