title: Laravel date format in submission form (d-M-Y)
body: <p>In the submit form in the blade template I have the following date form and it works fine with default date like <code>Y-m-d</code>.</p>
  
  <p>But I want to show the date like <code>d-M-Y</code>, I have tried to find a usable solution with out luck</p>
  
  <p>Here is the code that works with default date:</p>
  
  <p>Here is the model</p>
  
  <pre><code>public static $rules = [
      'birthday'   =&gt; 'date'
  ];
  
  protected $fillable = ['birthday'];
  </code></pre>
  
  <p>Here is the Controller method</p>
  
  <pre><code>public function update($id)
  {
      $kid = Kid::findOrFail($id);
  
      $validator = Validator::make($data = Input::all(), Kid::$rules);
  
      if ($validator-&gt;fails())
      {
          return Redirect::back()-&gt;withErrors($validator)-&gt;withInput();
      }
  
      $kid-&gt;update($data);
      return Redirect::to('kids/list');
  }
  </code></pre>
  
  <p>Here is the Blade template</p>
  
  <pre><code>{{ Form::model($kid, ['method' =&gt; 'PATCH', 'route' =&gt; ['kids.update', $kid-&gt;id], 'files' =&gt; true], ['class' =&gt; 'form-horizontal']) }}
  {{ Form::text('birthday', null, ['class' =&gt; 'form-control']) }}
  {{ Form::submit('Confirm update', ['class' =&gt; 'btn btn-primary']) }}
  {{ Form::close() }}
  </code></pre>
  
  <hr />
  
  <p><strong>UPDATE</strong></p>
  
  <p>This works for all Laravel versions from 4.2 and newer.</p>
  
  <p>For Laravel 5.1 and newer, you will need to install it as a <a href="http://laravelcollective.com/docs/5.1/html" rel="nofollow noreferrer">separate package</a> as it's no longer part of the Laravel 5 core.</p>
  
  <p>It was decided that the html/form builder are not a core requirement for the framework so it was removed from the core. The package I linked to is the one that was included with the L4 core and is being maintained as a separate package for L5 compatibility and usage, so you're safe using that if you choose to do so.</p>
  
  <p>Thanks to @Bogdan for this update.</p>