whossun/uikit-notify
uikit-notify
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.
MIT
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.