src/Models/Vacancy.php
public function isHoldingAnyFor($userId)
    {
        $appointments = $this->appointments()->get();

        foreach ($appointments as $appointment) {
            $contact = $appointment->contact()->first();
            if ($contact->isProfileOf($userId)) {
                return true;
            }
        }

        return false;
    }
public function isHoldingAnyFor($userId)
    {
        $appointments = $this->appointments()->get();

        foreach ($appointments as $appointment) {
            $contact = $appointment->contact()->first();
            if ($contact->isProfileOf($userId)) {
                return true;
            }
        }

        return false;
    }
public function isHoldingAnyFor ( $ userId ) { $ appointments = $ this -> appointments ( ) -> get ( ) ; foreach ( $ appointments as $ appointment ) { $ contact = $ appointment -> contact ( ) -> first ( ) ; if ( $ contact -> isProfileOf ( $ userId ) ) { return true ; } } return false ; }
is Holding Any Appointment for given User.

ToDo: Remove from here as needs knowledge from User

@param int $userId User to check belonging Appointments

@return bool Vacancy holds at least one Appointment of User
is Holding Any Appointment for given User .