$user->getRouteKey(), 'key' => [ 'public' => $user->getPublicKey(), 'route' => $user->getRouteKey(), ], 'team_id' => $user->team_id, 'user_id' => $user->user_id, 'roles' => $user->roles, 'position' => $user->position, 'settings' => $user->settings, 'expires_on' => $user->expires_on, 'created_by' => $user->created_by, 'deleted_at' => $user->deleted_at, 'url' => [ 'public' => trans_url('team/'.$user->getPublicKey()), 'user' => guard_url('team/user/'.$user->getRouteKey()), ], 'status' => trans('app.'.$user->status), 'created_at' => format_date($user->created_at), 'updated_at' => format_date($user->updated_at), ]; } }