mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 17:52:15 +01:00
refactor timetracker to seperate data and ui logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user