laravel carbon count days between dates
$diff = Carbon::parse( $start_date )->diffInDays( $end_date );
Here is what the above code is Doing:
1. We’re creating a new Carbon instance from the start_date string.
2. We’re calling the diffInDays() method on the Carbon instance, passing in the end_date string.
3. We’re assigning the result to the $diff variable.