milanarandjelovic/noty 问题修复 & 功能扩展

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

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

milanarandjelovic/noty

Composer 安装命令:

composer require milanarandjelovic/noty

包简介

Noty notification package for Laravel

README 文档

README

Latest Stable Release Latest Unstable Release License Total Downloads

Installation Steps

Require the package

After create your new Laravel application you can include Noty package with following comand:

composer require milanarandjelovic/noty

Add Provider and Alias

Add Provider and Alias inside of your config/app.php.

'providers' => [
    // other providers
    MA\Noty\NotyServiceProvider::class,
]

'aliases' => [
    // other aliases
    'Noty' => MA\Noty\Facades\Noty::class,
]

Publish config and assets

As optional if you want to modify the default configuration, you can publish the configuration file:

php artisan vendor:publish --provider="MA\Noty\NotyServiceProvider" --tag="config"
php artisan vendor:publish --provider="MA\Noty\NotyServiceProvider" --tag="public" --force

Usage

Include Noty assets and styles in your main view template:

<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        @noty_styles
    </head>
    <body>

        <h1>Main view</h1>

        @noty_scripts
        @noty_render
    </body>
</html>

Example:

 noty()->info('Info Message', 'Info')
       ->success('Success Message', 'Success')
       ->error('Error Message', 'Error')
       ->warning('Warning Message', 'Warning');

License

The Noty is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固