title: Laravel 5 validate date as php Y format e.g 2015?
body: <p>I have a form that uses bootstraps datepicker. I want to collect the year as <strong>2015</strong> for example</p>
  <p><strong>How do i do that?</strong></p>
  <p>The datepicker code is this:</p>
  <pre><code>$('#manufacture_year').datepicker({
      format: &quot; yyyy&quot;,
      viewMode: &quot;years&quot;,
      minViewMode: &quot;years&quot;,
      endDate: FromendDate,
      autoclose: true,
      disableEntry: true
  });
  </code></pre>
  <p>I'm displaying the datepicker like so:</p>
  <pre><code>{!! Form::text('manufacture_year', null, ['placeholder' =&gt; '1984', 'class' =&gt; 'form-control datepicker-default', 'id' =&gt; 'manufacture_year']) !!}
  </code></pre>
  <p>My validation rules are:</p>
  <pre><code>'manufacture_year' =&gt; 'required|date|date_format:Y'
  </code></pre>
  <p>When i submit the form i keep getting:</p>
  <blockquote>
  <p>The manufacture year is not a valid date.,The manufacture year does
  not match the format Y.</p>
  </blockquote>
  <p>I put 'Y' as the date format refering to:</p>
  <p><a href="http://php.net/manual/en/function.date.php" rel="nofollow noreferrer">http://php.net/manual/en/function.date.php</a></p>
  <p>Where it states that <strong>'Y' equates a full numeric representation of a year, 4 digits</strong></p>
  <p>Thank you for reading this.</p>