oyzm/toastr-for-laravel

There is no license information available for the latest version (dev-master) of this package.

toastr.js for laravel5.2

Maintainers

Package info

github.com/oyzmer/toastr

pkg:composer/oyzm/toastr-for-laravel

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2016-08-28 07:28 UTC

This package is not auto-updated.

Last update: 2026-03-13 01:56:17 UTC


README

toastr for laravel laravel5.*

#Installation

Run :

composer require ryan/toastr-for-laravel

Add providers in config/app.php

Oyzm\Toastr\ToastrServiceProvider::class

Add aliases in config/app.php

'Toastr' => Oyzm\Toastr\Facades\Toastr::class

Run:

 php artisan vendor:publish

#Usage

Just add this code to your blade template file:

{!! Toastr::render() !!}

Use these methods in controllers:

Toastr::warning($message, $title = null, $options = []) ;

Toastr::error($message, $title = null, $options = []) ;

Toastr::info($message, $title = null, $options = []);

Toastr::success($message, $title = null, $options = []);

Toastr::clear() ;