raymondwilkinson/sweetalert-laravel 问题修复 & 功能扩展

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

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

raymondwilkinson/sweetalert-laravel

最新稳定版本:v1.0.3

Composer 安装命令:

composer require raymondwilkinson/sweetalert-laravel

包简介

Simple way to flash sweetalert messages to the screen for laravel.

README 文档

README

Simple way to flash sweetalert messages to the screen for laravel.

Laravel 5.1 SweetAlert

Simple way to flash sweetalert messages to the screen for laravel.

##Installation

composer require raymondwilkinson/sweetalert-laravel

After install this package you have to set the service provider on your config/app.php file

RaymondWilkinson\SweetalertLaravel\AlertServiceProvider::class,

Copy the required assets of SweetAlert to your public folder. Those assets would be placed in the css and js directories respectively.

php artisan vendor:publish --tag=alerts

Then in your master view add those styles and scripts. Put this style between the tags

<link rel="stylesheet" type="text/css" href="css/sweetalert.css">

Add the JS script before close your tag.

<script src="js/sweetalert.min.js"></script>

Include the alerts view to your master view. Add this code right after set the JS script file.

@include('Alerts::sweetalerts')

###Usage

Your controllers are a perfect place to use it.

flash('Title', 'Message')


flash()->error('Title', 'Message')


flash()->success('Title', 'Message')


flash()->overlay('Title', 'Message')

###SweetAlert website

http://t4t5.github.io/sweetalert/

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固