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: 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-21T05:11:03.000Z (over 9 years ago)
- Last Synced: 2025-04-02T08:48:02.230Z (3 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 13
- Watchers: 1
- 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() !!}
```

### 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