2017 © Pedro Peláez
 

library toastr

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

image

csl/toastr

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  • Sunday, April 9, 2017
  • by wl496928838
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

laravel-toastr

Support laravel5.*, (*1)

toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended., (*2)

Installation

Using Composer, (*3)

composer require csl/toastr

Add the service provider to config/app.php, (*4)

Csl\Toastr\ToastrServiceProvider::class,

Add the Facade in config/app.php, (*5)

'Toastr'  => Csl\Toastr\Toastr::class,

Usage

jQuery toast, you need to add css and js to your html., (*6)

<link rel="stylesheet" href="http://cdn.bootcss.com/toastr.js/latest/css/toastr.min.css">



{!! Toastr::message() !!}
Toastr::info('foo', 'bar');

Toastr::success('foo', 'bar');

Toastr::warning('foo', 'bar');

Toastr::error('foo', 'bar');

Example

<?php

Route::get('/', function () {
    Toastr::success('Hi! this is Toastr', 'Hello', ["positionClass" => "toast-bottom-left"]);

    return view('welcome');
});
<!DOCTYPE html>
<html>
    <head>
        <title>Laravel</title>
        <link rel="stylesheet" href="http://cdn.bootcss.com/toastr.js/latest/css/toastr.min.css">
    </head>
    <body>
        <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
        <script src="http://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js"></script>
        {!! Toastr::message() !!}
    </body>
</html>

, (*7)

Config

If you need to modify the flash message partials, you can run:, (*8)

    php artisan vendor:publish

to publish the config file for config/toastr.php., (*9)

You can see toastr's documentation to custom your need., (*10)

The Versions

09/04 2017

dev-master

9999999-dev

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  Sources   Download

MIT

The Requires

 

by chensuilong

message csl laravel-flash laravel-alert laravel alert laravel flash laravel toastr csl toastr

09/04 2017

1.5

1.5.0.0

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  Sources   Download

MIT

The Requires

 

by chensuilong

message csl laravel-flash laravel-alert laravel alert laravel flash laravel toastr csl toastr

09/04 2017

1.4

1.4.0.0

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  Sources   Download

MIT

The Requires

 

by chensuilong

message csl laravel-flash laravel-alert laravel alert laravel flash laravel toastr csl toastr

09/04 2017

1.3

1.3.0.0

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  Sources   Download

MIT

The Requires

 

by chensuilong

message laravel-flash laravel-alert laravel alert laravel flash laravel toastr

09/04 2017

1.2

1.2.0.0

Support laravel5.* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

  Sources   Download

MIT

The Requires

 

by chensuilong

message toastr laravel flash