jenssegers / agent

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

Laravel 10 Jetstream v4 conflict #211

Open a4anes opened 11 months ago

a4anes commented 11 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 10 months ago

any updates?

whoisthisstud commented 10 months ago

same issue.

bucari commented 10 months ago

same issue

luiscampros commented 9 months ago

same issue

tanero commented 8 months ago

same issue

djtechonline commented 7 months ago

Same issue using Laravel 11.

srakl commented 7 months ago

same issue, and updates?

CeriseGoutPelican commented 6 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;
LUCASFRANKINC commented 1 week ago

Laravel 11 has the same issue. Thanks to @CeriseGoutPelican , the solution is perfect. Thanks.