lancewan/laravel5-sweetalert 问题修复 & 功能扩展

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

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

lancewan/laravel5-sweetalert

Composer 安装命令:

composer require lancewan/laravel5-sweetalert

包简介

sweetalert.js for laravel5.2

README 文档

README

Quick Installation

Begin by installing the package through Composer.

composer require lancewan/laravel-sweetalert=~1.0

Or add this code to composer.json file:

"lancewan/laravel5-sweetalert":"~1.0"

Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:

Service Provider

Lance\Sweet\SweetAlertServiceProvider::class,

Facade

'Sweet' => Lance\Sweet\Facade\Sweet::class,

Run php artisan vendor:publish

And that's it!

Usage

Usage is simple. Before redirecting to another page, simply call on Flash to set your desired Sweet message. There are a number of methods to assign different levels of priority (info, success, warning, and error).

Success

Sweet::success($message, $title = '', $options = []);

Info

Sweet::info($message, $title = '', $options = []);

Warning

Sweet::warning($message, $title = '', $options = []);

Error

Sweet::error($message, $title = '', $options = []);

Rendering

Just add this code to your blade template file:

{!! Sweet::render() !!}

Config

set the sweetAlert options in config/sweet.php , available options => sweetAlert.js

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固