whossun / uikit-notify by whossun

uikit notify for laravel
62
1
2
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-05-03 15:17:55
Package Statistics
Total Downloads: 62
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 1

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