2017 © Pedro Peláez
 

library flash-alert

Full width VueJS flash alerts

image

erikgall/flash-alert

Full width VueJS flash alerts

  • Tuesday, June 28, 2016
  • by erikgall
  • Repository
  • 1 Watchers
  • 4 Stars
  • 106 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 16 % Grown

The README.md

Laravel/VueJS Flash Alerts

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)

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

EGALL\FlashAlert\FlashAlertServiceProvider::class, (*2)

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

php artisan vendor:publish, (*3)

  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



@include('vendor.flash.alert')
  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:, (*4)

class AuthController extends Controller {

    public function login() {

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

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

    }

}

The Versions

28/06 2016

dev-master

9999999-dev

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v1.0.2

1.0.2.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v1.0.1

1.0.1.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v1.0.0

1.0.0.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.3.0

0.3.0.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.2.2

0.2.2.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.2.1

0.2.1.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.2.0

0.2.0.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.1.2

0.1.2.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.1.1

0.1.1.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway

28/06 2016

v0.1.0

0.1.0.0

Full width VueJS flash alerts

  Sources   Download

The Requires

 

The Development Requires

by Erik Galloway