$end = Carbon::parse($request->input('end_date')); $current = Carbon::now(); $length = $end->diffInDays($current); dd($length);