whossun/uikit-notify

uikit notify for laravel
62 1
Install
composer require whossun/uikit-notify
PHP:>=5.5.0
License:MIT
Last Updated:Sep 6, 2020
Links: GitHub  ·  Packagist
Maintainer: whossun

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

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660