2017 © Pedro Peláez
 

library toastr-5-laravel

toastr for laravel5

image

fenxiangpaomo/toastr-5-laravel

toastr for laravel5

  • Wednesday, December 14, 2016
  • by fenxiangpaomo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

toastr

toastr.js for laravel5, (*1)

Installation

  • Run composer require littlestarsx/toastr
  • Add Littlestarsx\Toastr\ToastrServiceProvider::class, to providers in config/app.php
  • Add 'Toastr' => Littlestarsx\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:, (*2)

{!! Toastr::render() !!}, (*3)

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

The Versions

14/12 2016

dev-master

9999999-dev https://github.com/fenxiangpaomo/toastr-5-laravel

toastr for laravel5

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by LoneStorm

laravel php notification toastr