Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.*
- Host: GitHub
- URL: https://github.com/sword-jin/laravel-reminder
- Owner: sword-jin
- License: mit
- Created: 2015-11-21T04:47:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-21T05:11:03.000Z (about 9 years ago)
- Last Synced: 2024-04-20T16:04:35.896Z (9 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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