#11:編集フォームを追加しよう - その2
ここでは、1行掲示板に、修正した投稿を保存する機能を追加します。そのために、修正内容を保存する機能を作成しましょう。
app/Http/Controllers/ArticleController.phppublic function update(Request $request, $id, Article $article)
{
    $article = Article::find($id);
    $article->content = $request->content;
    $article->user_name = $request->user_name;
    $article->save();
    return redirect()->route('article.show', ['id' => $article->id]);
}
resources/views/show.blade.php@extends('layout')
@section('content')
    <h1>paiza bbs</h1>
    <p>{{ $article->content }}</p>
    <p>{{ $article->user_name }}</p>
    <p>
        <a href={{ route('article.list') }} class='btn btn-outline-primary'>一覧に戻る</a>
        <a href={{ route('article.edit', ["id" =>  $article->id]) }} class='btn btn-outline-primary'>編集</a>
    </p>
    <div>
        {{ Form::open(['method' => 'delete', 'route' => ['article.delete', $article->id]]) }}
            {{ Form::submit('削除', ['class' => 'btn btn-outline-secondary']) }}
        {{ Form::close() }}
    </div>
@endsection
Laravel Recipes日本語版 | Formファサードのレシピ
http://recipes.laravel.jp/category/17
Laravel Recipes日本語版 | モデルをベースにしたフォームを作成する
http://recipes.laravel.jp/recipe/221
Laravel Collective
https://github.com/LaravelCollective/docs/blob/master/html.md
ファサード 5.7 Laravel
https://readouble.com/laravel/5.7/ja/facades.html
Bladeテンプレート 5.7 Laravel
https://readouble.com/laravel/5.7/ja/blade.html