Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sword-jin/laravel-reminder

A awesome message reminder build with toastr for laravel5.*
https://github.com/sword-jin/laravel-reminder

Last synced: about 2 months ago
JSON representation

A awesome message reminder build with toastr for laravel5.*

Awesome Lists containing this project

README

        

# laravel-reminder

Inspired by [laracasts flash](https://github.com/laracasts/flash)

### install

Using Composer

composer require rry/reminder

Add the service provider to `config/app.php`

```php
Rry\Reminder\ReminderServiceProvider::class,
```

Optionally include the Facade in config/app.php if you'd like.

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

> You can use reminder() function available.

### Dependencies

jQuery [toast](https://github.com/CodeSeven/toastr), you need to add css and js to your html.

### Basic

You should add `{!! Reminder::message() !!}` to your html.

Then.

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

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

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

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

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

```php
"toast-bottom-right"]);

return view('welcome');
});
```

```html


Laravel





Laravel 5




{!! reminder()->message() !!}

```

![](http://ww3.sinaimg.cn/mw690/baa3278fgw1ey7ky56nbgj20n60fuaav.jpg)

### Options

You can set custom options for Reminder. Run:

php artisan vendor:publish

to publish the config file for reminder.

You can see [toastr's documentation](http://codeseven.github.io/toastr/demo.html) to custom your need.

### MIT