Download the PHP package pixelcostudios/notify without Composer
On this page you can find all versions of the php package pixelcostudios/notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelcostudios/notify
More information about pixelcostudios/notify
Files in pixelcostudios/notify
Package notify
Short Description toastr.js, pnotify.js flush notifications for Laravel
License MIT
Homepage https://github.com/pixelcostudios/notify
Informations about the package notify
Notify notification package support Laravel 10
: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