An open API service indexing awesome lists of open source software.

https://github.com/plusemon/notify

Flexible Toastr JS Alert System for PHP/Laravel.
https://github.com/plusemon/notify

laravel laravel-package php toastr

Last synced: 7 months ago
JSON representation

Flexible Toastr JS Alert System for PHP/Laravel.

Awesome Lists containing this project

README

          

# Toastr JS Alert Notification System for PHP/Laravel

### 1. Install
```
composer require plusemon/notify
```

### 2. Add resources


```html



Laravel Notify

Laravel Toastr Notify Notification

{!! Notify::message() !!}

```

### 3. Usage

```php

Notify::success('You have successfully added Notify alert system');
notify()->info('Info message with helper function');

Notify::info('message', 'title', ['options']);
Notify::success('message', 'title', ['options']);
Notify::warning('message', 'title', ['options']);
Notify::error('message', 'title', ['options']);

Notify::clear();
```

return Notify::info('Info redirect back with message by helper function')->back();
return notify()->info('Info redirect with message by helper function')->redirect('/');


## You have successfully installed notify system. 😃

### Configuration

Add the service provider to `config/app.php`

```php
Plusemon\Notify\NotifyServiceProvider::class,
```

Optionally include the Facade in config/app.php if you'd like.

```php
'Notify' => Plusemon\Notify\Facades\Notify::class,
```

### Options

Publish the config file

php artisan vendor:publish --provider=Plusemon\Notify\NotifyServiceProvider

For More visit [toastr's documentation](http://codeseven.github.io/toastr/demo.html) to custom your need.

### Dependencies

jQuery [toast](https://github.com/CodeSeven/toastr), you need to add css and js to your html.

### MIT