markdown Laracasts Flash

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Laracasts Flash相关的知识,希望对你有一定的参考价值。

# Laracasts Flash

https://github.com/laracasts/flash

This composer package offers a Twitter Bootstrap optimized flash messaging setup for your Laravel applications.

## Installation

Begin by pulling in the package through Composer.

```bash
composer require laracasts/flash
```

Next, if using Laravel 5, include the service provider within your `config/app.php` file.

```php
'providers' => [
    Laracasts\Flash\FlashServiceProvider::class,
];
```

Finally, as noted above, the default CSS classes for your flash message are optimized for Twitter Bootstrap. As such, pull in the Bootstrap's CSS within your HTML or layout file.

```html
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
```

## Usage

Within your controllers, before you perform a redirect, make a call to the `flash()` function.

```php
public function store()
{
    flash('Welcome Aboard!');

    return home();
}
```

以上是关于markdown Laracasts Flash的主要内容,如果未能解决你的问题,请参考以下文章

markdown 关于Flash的ISO

markdown Flash哈希

markdown 安装(或更新)PPAPI Flash,以便基于Chromium的浏览器可以使用它

sh 开始https://laracasts.com/lessons/vagrant-simplified课程的bootstrap.sh文件。

php “PHP Bits:Visual Debt”中的代码https://laracasts.com/series/php-bits/episodes/1

欢迎使用CSDN-markdown编辑器