faisal-arbain / alert
Simple bootstrap alert
Requires
- php: >=5.3.0
- illuminate/session: 4.*@dev
- symfony/http-foundation: 2.*@dev
Requires (Dev)
- mockery/mockery: dev-master
This package is not auto-updated.
Last update: 2025-04-07 16:39:28 UTC
README
Simple implementation for Bootstrap Alert in Laravel.
Installation
To get the lastest version of Alert simply require it in your composer.json
file.
"faisal-arbain/alert": "dev-master"
You'll then need to run composer install
to download it and have the autoloader updated.
Once Alert is installed you need to register the service provider with the application. Open up app/config/app.php
and find the providers
key.
'providers' => array(
'FaisalArbain\Alert\AlertServiceProvider'
)
Alert also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases
key of your app/config/app.php
file.
'aliases' => array(
'Alert' => 'FaisalArbain\Alert\Facades\Alert'
)
Usage
-
Adding new alert to flash session
Alert::add("success", "succesfully saved!");
Supported types are
success
,error
,info
,warning
-
Then render the alerts on redirected page
Alert::render();
Support or Contact
If you have some problem, Contact faisal.arbain@flavert.com