定制 moathdev/sweetalert 二次开发

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

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

moathdev/sweetalert

Composer 安装命令:

composer require moathdev/sweetalert

包简介

A Sweet Alert package for Laravel 5.2

README 文档

README

all appreciation to laracasts.com i just can't sleep ! so i created package :)

##Installation

composer require moathdev/sweetalert

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

Moathdev\Sweetalert\SweetalertServiceProvider::class,

Then you just need to publish files ! Copy and paste it

php artisan vendor:publish --provider="Moathdev\Sweetalert\SweetalertServiceProvider"

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

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

Add the JS script and include flash view before close your tag.

        <script src="/js/sweetalert.min.js"></script>
        @include('Flash')
    </body>

###Usage

it's so Easy !


 flash('title','message','success',true);

 // there is 4 Types 1-warning 2-error 3-success 4-info

 // showConfirmButton yes = true no = false

###Issues

If you have any questions or issues, please open an Issue .

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固