This commit is contained in:
Adrian Hopek
2022-02-14 14:56:30 +01:00
parent d3d6e3080c
commit 1fe6e72e9a
9 changed files with 69 additions and 34 deletions

View File

@@ -14,6 +14,7 @@ use Illuminate\Support\Carbon;
* @property Carbon $date
* @property User $user
* @property VacationRequest $vacationRequest
* @property YearPeriod $yearPeriod
*/
class Vacation extends Model
{
@@ -34,4 +35,9 @@ class Vacation extends Model
{
return $this->belongsTo(VacationRequest::class);
}
public function yearPeriod(): BelongsTo
{
return $this->belongsTo(YearPeriod::class);
}
}