jenssegers / agent

👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
https://jenssegers.com
MIT License
4.53k stars 473 forks source link

Laravel 10 Jetstream v4 conflict #211

Open a4anes opened 9 months ago

a4anes commented 9 months ago

I'm currently working with Laravel 10 and Jetstream 4. However, I encountered an issue when attempting to install composer require jenssegers/agent. It seems that the problem arises because jenssegers/agent requires "mobiledetect/mobiledetectlib": "^2.7.6," while Jetstream has it locked at "mobiledetect/mobiledetectlib": "^4.8."

Do you have any suggestions or solutions to resolve this dependency conflict? I appreciate your assistance.

Error below

Problem 1

Qoraiche commented 9 months ago

any updates?

whoisthisstud commented 9 months ago

same issue.

bucari commented 8 months ago

same issue

luiscampros commented 8 months ago

same issue

tanero commented 7 months ago

same issue

djtechonline commented 5 months ago

Same issue using Laravel 11.

srakl commented 5 months ago

same issue, and updates?

CeriseGoutPelican commented 5 months ago

I believe #212 should solve the problem 🤞

Also note that Jetstream has removed the dependency to this package altogether. What I ended up doing is uninstalling jenssegers/agent and using Jetstream internal classes instead.

- use Jenssegers\Agent\Agent;
+ use Laravel\Jetstream\Agent;