Download the PHP package marjose/laravel-bootstrap-notify without Composer
On this page you can find all versions of the php package marjose/laravel-bootstrap-notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marjose/laravel-bootstrap-notify
More information about marjose/laravel-bootstrap-notify
Files in marjose/laravel-bootstrap-notify
Package laravel-bootstrap-notify
Short Description This will ease to show notification to a user on form submission
License MIT
Homepage https://github.com/marjose/laravel-bootstrap-notify
Informations about the package laravel-bootstrap-notify
This will ease to show notification to a user on form submission
Installation
You can install the package via composer:
You can publish the assets with:
You can publish the views with:
You can publish the config file with:
This is the contents of the published config file:
Now that we have published a few new files to our application we need to reload them with the following command:
Prerequisites
-
Add styles links with
-
Add js link with
- Include notify partial to your master layout
If you are on Laravel 7 or greater, you can use the tag syntax.
Usage
Within your controllers, before you perform a redirect call the notify method with a message. By default Laravel Bootstrap Notify
used Fontawesome
for the icons.
A complete example:
Types of alerts
You can also use a custom or pre-defined alert by adding it to the config under the preset.
how to use the preset, you need to use facades
Advance
You can use different Icon css framework like Fontawesome
, Bootstrap Icon
, and many others if you use the preset
functionality.
If you want to modify the styling of the alert you are free
to make any change of the component in the views/vendor/notify/notification
Other
if you are looking for the same but for TailwindCss
you can visit this guy.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Marjose
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bootstrap-notify with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ~6.0|~7.0|~8.0