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.
- Host: GitHub
- URL: https://github.com/plusemon/notify
- Owner: plusemon
- Created: 2021-06-05T14:43:58.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T10:08:25.000Z (about 4 years ago)
- Last Synced: 2025-10-03T04:42:06.227Z (10 months ago)
- Topics: laravel, laravel-package, php, toastr
- Language: PHP
- Homepage: https://packagist.org/packages/plusemon/notify
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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