whossun / uikit-notify
uikit notify for laravel
dev-master
2017-02-01 06:18 UTC
Requires
- php: >=5.5.0
- illuminate/session: >=5.2.7
- illuminate/support: >=5.2.7
This package is not auto-updated.
Last update: 2024-11-23 19:59:06 UTC
README
install
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,
Options
You can set custom options for Reminder. Run:
php artisan vendor:publish
to publish the config file for notify.
Basic
-
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.