* #40 - wip * #40 - generate pdf * #40 - fix * Update resources/js/Pages/VacationRequest/Show.vue Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * #40 - fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user