innsoft/alert

Alerts for laravel 4
11
Install
composer require innsoft/alert
PHP:>=5.4.0
Last Updated:Aug 23, 2014
Links: GitHub  ·  Packagist
Maintainer: gmlo89

Alert

Alert is a package for Laravel 4, provider a beatifull and simple way to display error messages.

For now this show the errors with structure for bootstrap, like this:

Bootstrap alerts

Based on this tutorial of @sileence

Version

0.1

Installation

Require innsoft/alert in composer.json and run composer update.

{
    "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:

'providers' => array(
    ...
    'Innsoft\Alert\AlertServiceProvider',
),

Example

On app/routes.php

Route::get('/', function()
{
    Alert::message('Welcome to this app!', 'success');
    return View::make('hello');
});

On app/views/hello.blade.php add this:

{{ Alert::render() }}

**don't forget add bootstrap files to your project.

License

MIT

Author

Giovanni Lopez

@gmlo_89

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

391,429,217 4,660