Download the PHP package bpocallaghan/notify without Composer
On this page you can find all versions of the php package bpocallaghan/notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bpocallaghan/notify
More information about bpocallaghan/notify
Files in bpocallaghan/notify
Package notify
Short Description Laravel 5 Flash Notifications with icons and animations and with a timeout
License MIT
Informations about the package notify
Notify (Laravel)
Notify alert boxes to the browser with sound and font awesome icons and give it a timeout to fly out. Works great to notify the user after a successful action (CRUD). Flash the information from Laravel or create multiple from javascript.
Want to see the current package in action, have a look at the project.
Laravel Starter Project (CMS)
Documentation, Installation, and Usage Instructions
First, pull in the package through Composer.
OR
See the documentation for detailed installation and usage instructions.
Laravel <5.4 only (Laravel 5.5 has automatic package discovery)
Include the service provider within config\app.php
.
Add a facade alias or use the globel helper function notify()
.
Usage
Within any view file (preferable your master layout).
Within any Controller.
The different 'levels' are:
notify()->info('Title', 'Description');
notify()->success('Title', 'Description');
notify()->warning('Title', 'Description');
notify()->error('Title', 'Description');
The different arguments:
notify()->info('Title', 'Description', false);
// without the iconnotify()->info('Title', 'Description', 'smile-o');
// specify the icon classnotify()->message($level = 'info', $title, $content, $icon, $timeout = 5000)
// argumentsnotify()->message('info', 'Title', 'Description', 'smile-o');
// specify the type of levelnotify()->message('info', 'Title', 'Description', 'smile-o', 10000);
// specify the timeout
If you need to modify the view partial, you can run:
The view partial can be found here resources\views\vendor\notify\notify.blade
.
You need to publish the assets.
Find the files here public\vendor\notify\
.
Move the mp3s to public\sounds\
.
If you use Laravel Elixir, move the css and js to your resource\assets
and include them in your gulpfile.js, otherwise link to the individual files in your html header.