#40 - generate pdf

This commit is contained in:
Adrian Hopek
2022-02-04 10:11:15 +01:00
parent fccf5e97f1
commit f1a3b8f9dd
19 changed files with 161 additions and 35 deletions

View File

@@ -22,6 +22,7 @@ use Toby\Domain\Enums\Role;
* @property string $last_name
* @property string $email
* @property string $avatar
* @property string $position
* @property Role $role
* @property EmploymentForm $employment_form
* @property Carbon $employment_date

View File

@@ -23,7 +23,10 @@ use Toby\Domain\Enums\VacationType;
* @property Carbon $to
* @property string $comment
* @property User $user
* @property YearPeriod $yearPeriod
* @property Collection $activities
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class VacationRequest extends Model
{
@@ -43,6 +46,11 @@ class VacationRequest extends Model
return $this->belongsTo(User::class);
}
public function yearPeriod(): BelongsTo
{
return $this->belongsTo(YearPeriod::class);
}
public function activities(): HasMany
{
return $this->hasMany(VacationRequestActivity::class);