#22 - wip
This commit is contained in:
		| @@ -28,6 +28,7 @@ use Toby\Domain\Enums\Role; | ||||
|  * @property Carbon $employment_date | ||||
|  * @property Collection $vacationLimits | ||||
|  * @property Collection $vacationRequests | ||||
|  * @property Collection $vacations | ||||
|  */ | ||||
| class User extends Authenticatable | ||||
| { | ||||
| @@ -57,6 +58,11 @@ class User extends Authenticatable | ||||
|         return $this->hasMany(VacationRequest::class); | ||||
|     } | ||||
|  | ||||
|     public function vacations(): HasMany | ||||
|     { | ||||
|         return $this->hasMany(Vacation::class); | ||||
|     } | ||||
|  | ||||
|     public function scopeSearch(Builder $query, ?string $text): Builder | ||||
|     { | ||||
|         if ($text === null) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user