You can only use the diffInDays() function on a Carbon instance. You can create a new one by parsing the end date you're receiving.
$end = Carbon::parse($request->input('end_date'));
No you should be able to compare them.
$now = Carbon::now();
$length = $end->diffInDays($now);