src/Concierge.php
public function isBookable($fromDate = 'now', $days = 7)
    {
        $fromDate = Carbon::parse($fromDate)->timezone($this->business->timezone);

        $count = $this->business
                      ->vacancies()
                      ->future($fromDate)
                      ->until($fromDate->addDays($days))
                      ->count();

        return $count > 0;
    }
public function isBookable($fromDate = 'now', $days = 7)
    {
        $fromDate = Carbon::parse($fromDate)->timezone($this->business->timezone);

        $count = $this->business
                      ->vacancies()
                      ->future($fromDate)
                      ->until($fromDate->addDays($days))
                      ->count();

        return $count > 0;
    }
public function isBookable ( $ fromDate = 'now' , $ days = 7 ) { $ fromDate = Carbon :: parse ( $ fromDate ) -> timezone ( $ this -> business -> timezone ) ; $ count = $ this -> business -> vacancies ( ) -> future ( $ fromDate ) -> until ( $ fromDate -> addDays ( $ days ) ) -> count ( ) ; return $ count > 0 ; }
Determine if the Business has any published Vacancies available for booking.

@param string $fromDate
@param int $days

@return bool
Determine if the Business has any published Vacancies available for booking .