2017 © Pedro Peláez
 

library reminder

A awesome message reminder build with toastr for laravel5.*

image

rry/reminder

A awesome message reminder build with toastr for laravel5.*

  • Saturday, November 21, 2015
  • by RryLee
  • Repository
  • 1 Watchers
  • 15 Stars
  • 222 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

laravel-reminder

Inspired by laracasts flash, (*1)

install

Using Composer, (*2)

composer require rry/reminder

Add the service provider to config/app.php, (*3)

Rry\Reminder\ReminderServiceProvider::class,

Optionally include the Facade in config/app.php if you'd like., (*4)

'Reminder'  => Rry\Reminder\ReminderFacade::class,

You can use reminder() function available., (*5)

Dependencies

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

Basic

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

Then., (*8)

  • Reminder::info('foo', 'bar', []);, (*9)

  • Reminder::success('foo', 'bar', []);, (*10)

  • Reminder::warning('foo', 'bar', []);, (*11)

  • Reminder::error('foo', 'bar', []);, (*12)

  • reminder()->info('foo', 'bar', []);, (*13)

<?php

Route::get('/', function () {
    Reminder::success('Hi! this is Reminder', 'Hello', ["positionClass" => "toast-bottom-right"]);

    return view('welcome');
});
<!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/1.11.3/jquery.min.js"></script>
        <script src="http://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js"></script>
        {!! reminder()->message() !!}
    </body>
</html>

, (*14)

Options

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

php artisan vendor:publish

to publish the config file for reminder., (*16)

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

MIT

The Versions

21/11 2015

dev-master

9999999-dev

A awesome message reminder build with toastr for laravel5.*

  Sources   Download

MIT

The Requires

 

by Avatar RryLee

21/11 2015

v1.0

1.0.0.0

A awesome message reminder build with toastr for laravel5.*

  Sources   Download

MIT

The Requires

 

by Avatar RryLee