appslabke/lara-izitoast 问题修复 & 功能扩展

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

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

appslabke/lara-izitoast

最新稳定版本:v1.1.1

Composer 安装命令:

composer require appslabke/lara-izitoast

包简介

Simplified wrapper for izitoast javascript notification library

README 文档

README

Latest Version on Packagist Total Downloads

Demo Image

This is a laravel notification wrapper build with http://izitoast.marcelodolce.com javascript library.

How to use this package

Config

  • Change the configuration on lara-izitoast.php config dir.

  • Get the package via composer

composer require appslabke/lara-izitoast
  • if you are not using Laravel 5.5 or higher add the service provider in your app.php under providers, in config dir.
'providers' => [
    LaraIzitoast\LaraIzitoastServiceProvider::class,
]

If you are using Laravel 5.5 and above, the package will be auto-discovered by laravel

  • Publish Lara-Izitoast package

php artisan vendor:publish --provider="LaraIzitoast\LaraIzitoastServiceProvider"

  • http://izitoast.marcelodolza.com CSS and JS files will be published in your public dir.

  • This will also create a config file. You can change the notification size from config

  • On your layout blade add the files

<head>
   .....
   <link href="{{ asset('css/iziToast.css') }}" rel="stylesheet">
   .....
</head>
    <body>
    .....
    <script src="{{ asset('js/iziToast.js') }}"></script>
    .....
    <body/>
    
  • Include the package view file in Layout blade below the iziToast js

@include('vendor.lara-izitoast.toast')

Let's make a toast

  • Quick way to make a toast (notification)

notify("Quick notification");

or

notify("Let's make a toast","Toast","info","topRight");

  • Notification Methods

notify()->success("Message","Title","position", "icon);

notify()->success("Success notification test","Success","topRight");

notify()->error("Error notification test","Error","topLeft");

notify()->warning("Warning notification test","Warning","bottomLeft");

notify()->info("Info notification test","Info","bottomRight");

return view('welcome');

  • And that's it.

Contributing & License

Lara-Izitoast is distributed under the MIT license.

About Apps:Lab

https://appslab.co.ke

统计信息

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

GitHub 信息

  • Stars: 40
  • Watchers: 2
  • Forks: 11
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固