alex-oliveira/ao-alert 问题修复 & 功能扩展

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

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

alex-oliveira/ao-alert

最新稳定版本:1.0.1

Composer 安装命令:

composer require alex-oliveira/ao-alert

包简介

Resources for Alerts with Laravel 5.* + Bootstrap 3

README 文档

README

Resources for Alerts with Laravel 5.1 + Bootstrap 3

1) Installation

$ composer require alex-oliveira/ao-alert

2) config/app.php

'providers' => [
    /*
     * Vendors Service Providers...
     */
    AoAlert\AlertServiceProvider::class,
],
'aliases' => [
    /*
     * Vendors Facades...
     */
    'Alert' => AoAlert\AlertFacade::class,
],

3) Using

Showing alerts in your template or view.

{!! alert()->show() !!}

Add new messages in session.

alert()->info('message');
alert()->success('message');
alert()->warning('message');
alert()->danger('message');

Add multiple messages.

alert()->info(['message a', 'message b', 'message c']);

Add message with multiple topics.

alert()->danger('message', ['topic a', 'topic b', 'topic c']);

Add new custom messages in session.

/* CSS */
.alert-custom{
    background: #ccc
}

/* PHP */
alert()->add('alert-custom', 'message');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-03