ipunkt/laravel-notifications 问题修复 & 功能扩展

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

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

ipunkt/laravel-notifications

Composer 安装命令:

composer require ipunkt/laravel-notifications

包简介

Notifications package for laravel 4.x

README 文档

README

Latest Stable Version Latest Unstable Version License Total Downloads

Thanks to Jeffrey Way (https://laracasts.com/lessons/flexible-flash-messages)

Installation

Add to your composer.json following lines

"require": {
	"ipunkt/laravel-notifications": "~2.*"
}

Add 'Ipunkt\LaravelNotifications\NotificationsServiceProvider', to providers in app/config/app.php.

Add 'Flash' => 'Ipunkt\LaravelNotifications\NotificationsFacade', to aliases in app/config/app.php.

Usage

In controller action use following statement to make a flash notification:

//	flashing an info message
Flash::message('Welcome');

//	flashing an info message
Flash::info('Welcome');

//	flashing a success message
Flash::success('Welcome');

//	flashing an error message
Flash::error('Welcome');

//	flashing an overlaying message
Flash::overlay('Welcome');

You can also use translatable messages:

Flash::message('app.errors.input_invalid');

In your view or layout template (e.g. a blade template) include the view of your choice:

@include('laravel-notifications::bootstrap-3/flash')

You can publish the views and modify it to your needs (optional):

$> php artisan view:publish ipunkt/laravel-notifications

Credits

All credits goes to Jeffrey Way and https://laracasts.com. We add translations for views, translating message string and split various templates as package content.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固