dev-master
9999999-devAlerts for laravel 4
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
by Giovanni Lopez
Wallogit.com
2017 © Pedro Peláez
Alerts for laravel 4
Alert is a package for Laravel 4, provider a beatifull and simple way to display error messages., (*1)
For now this show the errors with structure for bootstrap, like this:, (*2)
, (*3)
Based on this tutorial of @sileence, (*4)
0.1, (*5)
Require innsoft/alert in composer.json and run composer update., (*6)
{
"require": {
"laravel/framework": "4.0.*",
...
"innsoft/alert": "dev-master"
}
...
}
Composer will download the package. After the package is downloaded, open app/config/app.php and add the service provider:, (*7)
'providers' => array(
...
'Innsoft\Alert\AlertServiceProvider',
),
On app/routes.php, (*8)
Route::get('/', function()
{
Alert::message('Welcome to this app!', 'success');
return View::make('hello');
});
On app/views/hello.blade.php add this:, (*9)
{{ Alert::render() }}
**don't forget add bootstrap files to your project., (*10)
MIT, (*11)
Giovanni Lopez, (*12)
@gmlo_89, (*13)
Alerts for laravel 4