2017 © Pedro Peláez
 

library toastr-for-laravel

toastr.js for laravel5

image

ryan/toastr-for-laravel

toastr.js for laravel5

  • Thursday, June 14, 2018
  • by yuansir
  • Repository
  • 2 Watchers
  • 38 Stars
  • 5,390 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 3 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

toastr.js for Laravel 5.* (laravel5.4 以下适用,5.5+后没有维护了)

Installation

  • Run composer require ryan/toastr-for-laravel, (*1)

  • Add Yuansir\Toastr\ToastrServiceProvider::class, to providers in config/app.php, (*2)

  • Add 'Toastr' => Yuansir\Toastr\Facades\Toastr::class, to aliases in config/app.php
  • Run php artisan vendor:publish

Usage

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

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

Use these methods in controllers:, (*4)

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

Config

set the toaster options in config/toastr.php , available options => toastr.js demo, (*5)

The Versions

14/06 2018

dev-master

9999999-dev

toastr.js for laravel5

  Sources   Download

09/03 2017

1.1.0

1.1.0.0

toastr.js for laravel5

  Sources   Download

16/05 2016

dev-analysis-Xa66vo

dev-analysis-Xa66vo

toastr.js for laravel5

  Sources   Download

22/01 2016

1.0.0

1.0.0.0

toastr.js for laravel5

  Sources   Download