Skip to content

[Bug]: Windows logo not shawing in Openrating System Card #46

@Xety

Description

@Xety

What happened?

Hello,

The Windows logo is not showing in the Operating System Card.
That is caused because the trait that capture and save the informations here : https://github.com/me-shaon/laravel-request-analytics/blob/main/src/Traits/CaptureRequest.php#L128 are saving Windows 10, Windows 7 etc and the service that display it does not match the saved OS, only windows : https://github.com/me-shaon/laravel-request-analytics/blob/main/resources/views/components/analytics/operating-systems.blade.php#L10

Actually, I have bypass this issue with this code in https://github.com/me-shaon/laravel-request-analytics/blob/main/resources/views/components/analytics/operating-systems.blade.php#L10

$os = str_replace(' ', '', strtolower($os));
$os = str_starts_with($os, 'windows') ? 'windows' : $os;

How to reproduce the bug

Visit the page with a windows OS.

Package Version

1.3.0

PHP Version

8.4

Laravel Version

12.28.1

Which operating systems does with happen with?

Windows

Notes

Image

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions