public function findAddress($addressId, $studentId) { return Address::where(['user_id' => $this->findStudent($studentId)->user->id, 'id' => $addressId])->firstOrFail(); }
public function findAddress($addressId, $guardianId) { return Address::where(['user_id' => $this->findGuardian($guardianId)->user->id, 'id' => $addressId])->firstOrFail(); }
public function findAddress($addressId, $employeeId) { return Address::where(['user_id' => $this->findEmployee($employeeId)->user->id, 'id' => $addressId])->firstOrFail(); }