2017 © Pedro Peláez
 

library toastr-for-laravel

toastr.js for laravel5

image

arvin/toastr-for-laravel

toastr.js for laravel5

  • Monday, March 27, 2017
  • by arvin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

README, (*1)

Installation

  1. Run composer require arvin/toastr-for-laravel
  2. Add Arvin\Toastr\ToastrServiceProvider::class, to providers in config/app.php
  3. Add 'Toastr' => Arvin\Toastr\Facades\Toastr::class, to aliases in config/app.php
  4. Run php artisan vendor:publish

Usage

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

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

Use these methods in controllers:, (*3)

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, (*4)

The Versions

27/03 2017

dev-master

9999999-dev

toastr.js for laravel5

  Sources   Download

MIT

by Avatar arvin

27/03 2017

1.0

1.0.0.0

toastr.js for laravel5

  Sources   Download

MIT

by Avatar arvin