定制 erikgall/flash-alert 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

erikgall/flash-alert

Composer 安装命令:

composer require erikgall/flash-alert

包简介

Full width VueJS flash alerts

README 文档

README

Requirements

  1. Laravel
  2. Laravel Elixir
  3. VueJS
  4. Laravel-Elixir-Vueify

Installation

  1. Run the following command from your project root:

composer require erikgall/flash-alert

  1. Add the following line to your service providers in your config/app.php file:

EGALL\FlashAlert\FlashAlertServiceProvider::class

  1. In the command line run the following command to publish the assets:

php artisan vendor:publish

  1. Import the component like such (assuming your are inside your main app.js located at resources/assets/js):
 import FlashAlert from './components/flash-alert.vue';
  1. Add the component to your VueJs components
new Vue({
    el: '#app',
    components: {
        FlashAlert
    }
});
  1. Add the following line to your main blade layout file. This line must be wrapped in a div#app
<div id="app">
    @include('vendor.flash.alert')
</div>
  1. Add the sass file to your main app.sass file:
@import "vendor/alert";
// For animations the package includes a sass copy of animate.css
@import "vendor/animate";
  1. Run gulp

Usage

The easiest way to use the package is in your controller like so:

class AuthController extends Controller {

    public function login() {

        // Login Success
        alert()->success('You have been successfully signed in.')->autohide(4000);

        return redirect()->to('/users');

    }

}

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固