title: Laravel reset value in input after validation fail?
body: <p>I'm so confuse now, I'm learning Laravel from Laracast, according to the instructor, after validation fail, the form does not reset values that user entered. But when testing validation, when I submit the form reset every thing.</p>
  
  <p>Another question is the <strong>undefined variable</strong> <code>$errors</code> when I try to access it.</p>
  
  <p><strong>My Controller</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  
  use App\Articles;
  use App\Http\Requests\CreateArticle;
  use Carbon\Carbon;
  use App\Http\Requests;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  
  class ArticlesController extends Controller
  {
  
  
  
      public function create()
      {
          return view('articles.create');
      }
  
  
      public function store(Request $request)
      {
          $this-&gt;validate($request, [
              'title' =&gt; 'required',
              'body'  =&gt; 'required'
          ]);
          Articles::create($request-&gt;all());
          return redirect('articles');
      }
  
  }
  </code></pre>
  
  <p><strong>My View</strong></p>
  
  <pre><code>@extends('app')
  
  @section('content')
      &lt;h1&gt;Create a new Articles&lt;/h1&gt;
  
      &lt;hr/&gt;
  
      {!! Form::open(['url' =&gt; 'articles']) !!}
  
      &lt;div class="form-group"&gt;
          {!! Form::label('title', 'Title: ') !!}
          {!! Form::text('title', null, ['class' =&gt; 'form-control']) !!}
      &lt;/div&gt;
  
  
      &lt;div class="form-group"&gt;
          {!! Form::label('body', 'Body') !!}
          {!! Form::textarea('body', null, ['class' =&gt; 'form-control']) !!}
      &lt;/div&gt;
  
  
      &lt;div class="form-group"&gt;
          {!! Form::label('published_at', 'Published On:') !!}
          {!! Form::input('text', 'published_at', date('Y-m-d'), ['class' =&gt; 'form-control']) !!}
      &lt;/div&gt;
  
  
      &lt;div class="form-group"&gt;
          {!! Form::submit('submit', ['class' =&gt; 'btn btn-primary']) !!}
      &lt;/div&gt;
  
  
      @if(isset($errors))
      {{var_dump($errors)}}
      @endif
      {!! Form::close() !!}
  
  @stop
  </code></pre>
  
  <p>He use v5.0 and I'm using v5.2</p>