uikit-notify
install
In order to install uikit-notify, just add, (*1)
"whossun/uikit-notify": "dev-master", (*2)
to your composer.json. Then run composer install or composer update., (*3)
Add the service provider to config/app.php, (*4)
Whossun\Notify\NotifyServiceProvider::class,
Optionally include the Facade in config/app.php if you'd like., (*5)
'Notify' => Whossun\Notify\Facades\Notify::class,
Options
You can set custom options for Reminder. Run:, (*6)
php artisan vendor:publish
to publish the config file for notify., (*7)
Basic
-
Notify::info('message', ['options']);, (*8)
-
Notify::success('message', ['options']);, (*9)
-
Notify::warning('message', ['options']);, (*10)
-
Notify::danger('message', ['options']);, (*11)
-
Notify()->info('message', ['options']);, (*12)
<?php
Route::get('/', function () {
Notify::success('Messages in here', ['pos' => 'top-center']);
return view('welcome');
});
Then, (*13)
You should add {!! Notify::render() !!} to your html., (*14)
MIT