https://github.com/grohiro/laravel-html-alert
https://github.com/grohiro/laravel-html-alert
laravel laravel5-package
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grohiro/laravel-html-alert
- Owner: grohiro
- Created: 2017-09-13T03:55:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T04:51:45.000Z (about 7 years ago)
- Last Synced: 2025-02-24T01:48:25.634Z (2 months ago)
- Topics: laravel, laravel5-package
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
];
```