title: The separation symbol could not be found Unexpected data found. Trailing data Carbon Laravel
body: <p>I'm using carbon in my laravel project. I tried to change date format following. I can't find any error but it is showing separation symbol could not be found.
  This is how I have done</p>
  <pre><code>$employees = $request-&gt;get('employeeIds');
      $inTimes = $request-&gt;get('inTime');
      $outTimes = $request-&gt;get('outTime');
  
      $attendance_date = Carbon::createFromFormat('d/m/Y', $request-&gt;get('attendance_date'))-&gt;format('Y-m-d');
  
      //fetch employee working hours
      $workTimes = Employee::where('status', AppHelper::ACTIVE)-&gt;get()-&gt;reduce(function ($workTimes, $employee) use ($request) {
          $workTimes[$employee-&gt;id] = [
              'in_time' =&gt; null,
              'out_time' =&gt; null
          ];
          if ($employee-&gt;duty_start) {
              $workTimes[$employee-&gt;id]['in_time'] = Carbon::createFromFormat('d/m/Y H:i:s', $request-&gt;get('attendance_date') . ' ' . $employee-&gt;getOriginal('duty_start'));
          }
  
          if ($employee-&gt;duty_end) {
              $workTimes[$employee-&gt;id]['out_time'] = Carbon::createFromFormat('d/m/Y H:i:s', $request-&gt;get('attendance_date') . ' ' . $employee-&gt;getOriginal('duty_end'));
          }
  
          return $workTimes;
      });
  </code></pre>