2017 © Pedro Peláez
 

library toastr-for-laravel

image

oyzm/toastr-for-laravel

  • Tuesday, March 6, 2018
  • by oyzmer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

toastr

toastr for laravel laravel5.*, (*1)

Installation

Run :, (*2)

composer require ryan/toastr-for-laravel

Add providers in config/app.php, (*3)

Oyzm\Toastr\ToastrServiceProvider::class

Add aliases in config/app.php, (*4)

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

Run:, (*5)

 php artisan vendor:publish

Usage

Just add this code to your blade template file:, (*6)

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

Use these methods in controllers:, (*7)

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() ;

The Versions

06/03 2018

1.0.0

1.0.0.0

  Sources   Download

28/08 2016

dev-master

9999999-dev

toastr.js for laravel5.2

  Sources   Download

by oyzm