This commit is contained in:
Adrian Hopek
2022-04-04 14:23:51 +02:00
parent 1ae23bd7cb
commit edbe5bb961
6 changed files with 84 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ use Illuminate\Support\Collection;
* @property int $id
* @property int $year
* @property Collection $vacationLimits
* @property Collection $vacationRequests
* @property Collection $holidays
*/
class YearPeriod extends Model
@@ -41,6 +42,11 @@ class YearPeriod extends Model
return $this->hasMany(VacationLimit::class);
}
public function vacationRequests(): HasMany
{
return $this->hasMany(VacationRequest::class);
}
public function holidays(): HasMany
{
return $this->hasMany(Holiday::class);