Download the PHP package mawuekom/laravel-notiflash without Composer
On this page you can find all versions of the php package mawuekom/laravel-notiflash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mawuekom/laravel-notiflash
More information about mawuekom/laravel-notiflash
Files in mawuekom/laravel-notiflash
Package laravel-notiflash
Short Description Flexible Flash notifications for Laravel
License MIT
Homepage https://github.com/mawuva/laravel-notiflash
Informations about the package laravel-notiflash
Laravel Notiflash
Flexible Flash notifications for Laravel
Installation
You can install the package via composer:
Once install, go to config/app.php
to add NotiflashServiceProvider
in providers array
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php
file.
-
Service Provider
-
Publish Assets
Or
Now that we have published a few new files to our application we need to reload them with the following command:
Usage
- Add styles links with
@notiflashCss
- Add scripts links with
@notiflashJs
- use
notiflash()
helper function inside your controller to set a toast notification for info, success, warning or error - Include notiflash partial to your master layout
@include('notiflash::messages')
NB: You can skip steps 1 and 2 by just add this in your view @notiflashAssets
If you are on Laravel 7 or greater, you can use the tag syntax.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-notiflash with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/session Version ^8.0|^9.0|^10.0
illuminate/view Version ^8.0|^9.0|^10.0