Esempio n. 1
0
 /**
  * Get a Vacancy for a given DateTime and Service combination.
  *
  * @param Carbon  $targetDateTime
  * @param Service $service
  *
  * @return App\Models\Vacancy
  */
 public function getSlotFor(Carbon $targetDateTime, Service $service)
 {
     return $this->business->vacancies()->forDateTime($targetDateTime)->forService($service)->first();
 }