refactor timetracker to seperate data and ui logic

This commit is contained in:
Gregor Vostrak
2024-07-22 17:56:51 +02:00
parent a9c874e540
commit 06fef6e40f
41 changed files with 1984 additions and 961 deletions

View File

@@ -30,7 +30,7 @@ class UserMemberController extends Controller
$members = Member::query()
->whereBelongsTo($user, 'user')
->with(['organization'])
->get();
->paginate(config('app.pagination_per_page_default'));
return new PersonalMemberCollection($members);
}

View File

@@ -24,7 +24,7 @@ class PersonalMemberResource extends BaseResource
/** @var string $id ID of membership */
'id' => $this->resource->id,
'organization' => [
/** @var int $id ID of organization */
/** @var string $id ID of organization */
'id' => $this->resource->organization->id,
/** @var string $name Name of organization */
'name' => $this->resource->organization->name,