An open API service indexing awesome lists of open source software.

https://github.com/grohiro/laravel-html-alert


https://github.com/grohiro/laravel-html-alert

laravel laravel5-package

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# laravel-html-alert

## Usage

```php
use Grohiro\Laravel\Alert\Alert;

// Controller
public function index()
{
return view('index')->withAlert(Alert::success('Done.'));
}
```

```view
{!! Html::alert() !!}
```

## Install

Add the repository to composer.json

```
"repositories": [
{
"type": "vcs",
"url": "[email protected]:grohiro/laravel-html-alert.git"
}
],
```

```
$ composer require grohiro/laravel-html-alert 'dev-master'
```

Add the service provider to `config/app.php'

```php
providers = [
//...
Grohiro\Laravel\Alert\AlertServiceProvider::class
];
```