Package Data | |
---|---|
Maintainer Username: | whossun |
Maintainer Contact: | whossun@gmail.com (whossun) |
Package Create Date: | 2016-08-12 |
Package Last Update: | 2020-09-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:14:39 |
Package Statistics | |
---|---|
Total Downloads: | 62 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
In order to install uikit-notify, just add
"whossun/uikit-notify": "dev-master"
to your composer.json. Then run composer install or composer update.
Add the service provider to config/app.php
Whossun\Notify\NotifyServiceProvider::class,
Optionally include the Facade in config/app.php if you'd like.
'Notify' => Whossun\Notify\Facades\Notify::class,
You can set custom options for Reminder. Run:
php artisan vendor:publish
to publish the config file for notify.
Notify::info('message', ['options']);
Notify::success('message', ['options']);
Notify::warning('message', ['options']);
Notify::danger('message', ['options']);
Notify()->info('message', ['options']);
<?php
Route::get('/', function () {
Notify::success('Messages in here', ['pos' => 'top-center']);
return view('welcome');
});
Then
You should add {!! Notify::render() !!}
to your html.