Typos, Bugfixes and explicit response for organization show page

This commit is contained in:
Constantin Graf
2024-04-21 22:15:11 +02:00
committed by Constantin Graf
parent 2acef6a997
commit 5e979db912
9 changed files with 83 additions and 31 deletions

View File

@@ -27,8 +27,9 @@ use Laravel\Jetstream\Team as JetstreamTeam;
* @property User $owner
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Collection<User> $users
* @property Collection<string, User> $realUsers
* @property Collection<int, User> $users
* @property Collection<int, User> $realUsers
* @property-read Collection<int, OrganizationInvitation> $teamInvitations
* @property Membership $membership
*
* @method HasMany<OrganizationInvitation> teamInvitations()
@@ -83,7 +84,7 @@ class Organization extends JetstreamTeam
/**
* Get all the non-placeholder users of the organization including its owner.
*
* @return Collection<string, User>
* @return Collection<int, User>
*/
public function allRealUsers(): Collection
{

View File

@@ -22,7 +22,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
* @property int|null $billable_rate
* @property-read Organization $organization
* @property-read Client|null $client
* @property-read Collection<Task> $tasks
* @property-read Collection<int, Task> $tasks
*
* @method Builder<Project> visibleByUser(User $user)
* @method static ProjectFactory factory()

View File

@@ -22,7 +22,7 @@ use Illuminate\Support\Carbon;
* @property Carbon|null $updated_at
* @property-read Project $project
* @property-read Organization $organization
* @property-read Collection<TimeEntry> $timeEntries
* @property-read Collection<int, TimeEntry> $timeEntries
*
* @method static TaskFactory factory()
*/