src/Carbon/Traits/Difference.php
public function diffInWeekendDays($date = null, $absolute = true)
    {
        return $this->diffInDaysFiltered(function (CarbonInterface $date) {
            return $date->isWeekend();
        }, $date, $absolute);
    }
public function diffInWeekendDays($date = null, $absolute = true)
    {
        return $this->diffInDaysFiltered(function (CarbonInterface $date) {
            return $date->isWeekend();
        }, $date, $absolute);
    }
public function diffInWeekendDays ( $ date = null , $ absolute = true ) { return $ this -> diffInDaysFiltered ( function ( CarbonInterface $ date ) { return $ date -> isWeekend ( ) ; } , $ date , $ absolute ) ; }
Get the difference in weekend days using a filter

@param Carbon|\DateTimeInterface|string|null $date
@param bool                                  $absolute Get the absolute of the difference

@return int
Get the difference in weekend days using a filter