定制 leantony/laravel-flash 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

leantony/laravel-flash

Composer 安装命令:

composer require leantony/laravel-flash

包简介

Flash notifier based on Jeffery Way's laracasts/flash that uses toast js

README 文档

README

An slightly modified version of jeffrey way's laracasts/flash composer package to issue the flash notifications based on toastr js.

Installation

The package is available on composer. Available for laravel 5.1+

composer install leantony/laravel-flash

Once you have installed, you need to add the service provider to your app.php configuration. Like so;

Leantony\Flash\Providers\ServiceProvider::class

If you are using laravel 5.5+, the provider will be discovered automatically. No need to add it manually to app.php

Publishing assets

You'll need to publish the javascript so that you can add it to your blade view/layout. To do so, you can run this command;

php artisan vendor:publish --provider="Leantony\Flash\Providers\ServiceProvider" --tag="assets"

Make changes to your view/layout

Note that you'll need the toastr js asset loaded before the js provided by this package

<--- toastr js --->
<script src="{{ asset('vendor/leantony/flash/js/flash.js') }}"></script>

@include('leantony::flash.toast')

Usage

Same as laracasts/flash. Anytime you flash('some message'), depending on how you call the function, the alert you get should be a toastr notification.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固