2017 © Pedro Peláez
 

library toasts

A package for creating toast alerts in Laravel

image

shawnsandy/toasts

A package for creating toast alerts in Laravel

  • Friday, November 4, 2016
  • by shawnsandy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Toast SensioLabsInsight

Latest Version on Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

A simple Package for creating Toast alerts in Laravel., (*2)

Install

Via Composer, (*3)

``` bash $ composer require shawnsandy/toasts, (*4)


Add the app.php to your `config/app.php` *Provider* ``` php 'providers' => [ ShawnSandy\Toasts\ToastProvider::class, ];

Facade, (*5)

``` php 'aliases' => [ 'Toast' => ShawnSandy\Toasts\App\ToastsFacade::class, ], (*6)




## Usage __Create flash message(s) in you controller__ ``` php // Display a info alert toastInfo( 'Information is very valuable' ); // Display a success alert toastSuccess( 'A success alert' ); // Display a warning alert toastWarning( 'A warming alert' ); // Display a danager alert toastDanger( 'Information is very valuable' ); // Display a alert with title toastInfo( 'Information is very valuable', 'Alert title' );

Add to your views, (*7)

``` html, (*8)

{!! Toast::toastrJs() !!}, (*9)

@include('toast::toastr.js', ['options' => ['timeOut' => 5000]]), (*10)


## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*11)

Security

If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

04/11 2016

dev-master

9999999-dev https://github.com/ShawnSandy/PkgStart

A package for creating toast alerts in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel toasts shawnsandy

04/11 2016

dev-develop

dev-develop https://github.com/ShawnSandy/PkgStart

A package for creating toast alerts in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel toasts shawnsandy

04/11 2016

v0.1.10

0.1.10.0 https://github.com/ShawnSandy/PkgStart

A simple Laravel package for creating toast alerts in laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel toasts shawnsandy

04/11 2016

v0.1.1

0.1.1.0 https://github.com/ShawnSandy/PkgStart

A simple Laravel package for creating toast alerts in laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel toasts shawnsandy

04/11 2016

v0.1

0.1.0.0 https://github.com/ShawnSandy/PkgStart

A simple Laravel package for creating toast alerts using toastr ot toast.js

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel toasts shawnsandy