2017 © Pedro Peláez
 

library laravel-toastr

toastr.js for laravel 5.5

image

mvs3d/laravel-toastr

toastr.js for laravel 5.5

  • Friday, May 4, 2018
  • by mvs3d
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

laravel-toastr for laravel 5.5

install

Using Composer, (*1)

composer require mvs3d/laravel-toastr

With laravel 5.5 you do not have to add serviceprovider manually Laravel 5.5 has auto discovery, (*2)

Options

You can set custom options for Reminder. Run:, (*3)

php artisan vendor:publish

to publish the config file for toastr., (*4)

You can see toastr's documentation to custom your need., (*5)

You can use toastr() function available., (*6)

Dependencies

jQuery toast, you need to add css and js to your html., (*7)

Basic

  • Toastr::info('message', 'title', ['options']);, (*8)

  • Toastr::success('message', 'title', ['options']);, (*9)

  • Toastr::warning('message', 'title', ['options']);, (*10)

  • Toastr::error('message', 'title', ['options']);, (*11)

  • Toastr::clear();, (*12)

  • Toastr()->info('message', 'title', ['options']);, (*13)

<?php

Route::get('/', function () {
    Toastr::success('Messages in here', 'Title', ["positionClass" => "toast-top-center"]);

    return view('welcome');
});

Then, (*14)

You should add {!! Toastr::message() !!} to your html., (*15)

<!DOCTYPE html>
<html>
    <head>
        <title>Laravel</title>
        <link rel="stylesheet" href="http://cdn.bootcss.com/toastr.js/latest/css/toastr.min.css">
    </head>
    <body>
        <div class="container">
            <div class="content">
                <div class="title">Laravel 5</div>
            </div>
        </div>
        <script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
        <script src="http://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js"></script>
        {!! Toastr::message() !!}
    </body>
</html>

MIT

The Versions

04/05 2018

dev-master

9999999-dev https://github.com/mvs3d/laravel-toastr

toastr.js for laravel 5.5

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr

04/05 2018

1.0.2

1.0.2.0 https://github.com/mvs3d/laravel-toastr

toastr.js for laravel 5.5

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr

18/02 2018

dev-custom

dev-custom https://github.com/m1guelpf/laravel-toastr

toastr.js for laravel 5.5

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr

16/11 2017

dev-custom-5.3

dev-custom-5.3 https://github.com/m1guelpf/laravel-toastr

toastr.js for laravel 5.3

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr

10/07 2016

1.0.1

1.0.1.0 https://github.com/whossun/laravel-toastr

toastr.js for laravel 5.2

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr

10/07 2016

1.0.0

1.0.0.0 https://github.com/whossun/laravel-toastr

toastr.js for laravel 5.2

  Sources   Download

MIT

The Requires

 

by Avatar whossun

laravel php notification toastr