2017 © Pedro Peláez
 

library alert

Alerts for laravel 4

image

innsoft/alert

Alerts for laravel 4

  • Saturday, August 23, 2014
  • by gmlo89
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Alert

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)

Bootstrap alerts, (*3)

Based on this tutorial of @sileence, (*4)

Version

0.1, (*5)

Installation

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',
),

Example

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)

License

MIT, (*11)

Author

Giovanni Lopez, (*12)

@gmlo_89, (*13)

The Versions

23/08 2014

dev-master

9999999-dev

Alerts for laravel 4

  Sources   Download

The Requires

 

by Giovanni Lopez