title: Laravel Datepicker Failed to parse time string
body: <p>I'm trying to build a query in Laravel using whereBetween and I have a problem with the dates-range. I'm using Carbon to get the inputs, looking like this:</p>
  
  <pre><code>$dateRange = Carbon::parse($request-&gt;get('anniversary'));
  </code></pre>
  
  <p>I received the following error on submit:</p>
  
  <pre><code>DateTime::__construct(): Failed to parse time string (06/01/2019 - 06/30/2019) at position 11 (-): Unexpected character
  </code></pre>
  
  <p>Then, I changed the $dateRange in this form:</p>
  
  <pre><code>$dateRange = Carbon::parse(str_replace('-', '', $request-&gt;get('anniversary')));
  </code></pre>
  
  <p>After that, this error occured:</p>
  
  <pre><code>DateTime::__construct(): Failed to parse time string (06/01/2019 06/30/2019) at position 12 (0): Double date specification
  </code></pre>
  
  <p>The whereBetween clause looks like this:</p>
  
  <pre><code>-&gt;whereBetween('anniversary', [$dateRange])
  </code></pre>
  
  <p>Any ideas on how can I fix this?</p>