承接 rukhsar/sweet-notify 相关项目开发

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

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

rukhsar/sweet-notify

Composer 安装命令:

composer require rukhsar/sweet-notify

包简介

A simple laravel package to show Sweet Alert notifications in blade templates.

README 文档

README

Add Sweet Alert notifications to Laravel application with ease.

Installation

Install using composer

composer require rukhsar/sweet-notify

After installing this package you have to add the service provider for this package to your config/app.php .

Rukhsar\SweetNotify\SweetNotifyServiceProvider::class

Copy the required assets by using

php artisan vendor:publish --tag=sweetnotify

This will copy the sweetalert.css and sweetalert.js to your public/css and public/js.

Then in your master view or layout add

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

and the JS script tag before your </body>

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

Include the SweetNotify template in your main view or layout file right after the script tag above.

    @include('SweetNotify::sweetnotify')

Usage

You can use SweetNotify notifications in you controllers, events and jobs. But I prefer to use them in controller just before redirecting to a view.

Following methods are available to use.

sweet('Title','Your Message');

sweet()->error('Title','Your Message');

sweet()->success('Title','Your Message');

sweet()->overlay('Title','Your Message');

Issues

If you have any question or issue, please open an Issue and I will try to fix it as soon as possible.

Thanks to

Sweet Alert - http://t4t5.github.io/sweetalert/

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固