Download the PHP package yoeunes/notify without Composer
On this page you can find all versions of the php package yoeunes/notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoeunes/notify
More information about yoeunes/notify
Files in yoeunes/notify
Package notify
Short Description toastr.js, pnotify.js flush notifications for Laravel 5, 6, 7, 8 and Lumen
License MIT
Homepage https://github.com/yoeunes/notify
Informations about the package notify
Notify notification package for Laravel
:eyes: This package helps you to add notifications to your Laravel projects.
Install
You can install the package using composer
Usage:
Include jQuery and your notification plugin assets in your view template:
- Add your styles links tag or
@notify_css
- Add your scripts links tags or
@notify_js
- Add
@notify_render
to render your notification - use
notify()
helper function inside your controller to set a toast notification for info, success, warning or error
as an example:
After that add the @notify_render
at the bottom of your view to actualy render the notify notifications.
Other Options
other api methods:
// You can also chain multiple messages together using method chaining
Service Provider Laravel version < 5.5:
In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled
Add the service provider to config/app.php
. .
As optional if you want to modify the default configuration, you can publish the configuration file:
configuration:
Credits
- Younes Khoubza
- All Contributors
License
MIT
All versions of notify with dependencies
illuminate/session Version ^5.5 || ^6.0 || ^7.0 || ^8.0
illuminate/support Version ^5.5 || ^6.0 || ^7.0 || ^8.0