-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x] Replace jenssegers/agent
and use latest mobiledetect/mobiledetectlib
#1399
Conversation
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
src/Agent.php
Outdated
if ( | ||
$this->getUserAgent() === static::$cloudFrontUA | ||
&& $this->getHttpHeader('HTTP_CLOUDFRONT_IS_DESKTOP_VIEWER') === 'true' | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work @crynobone! 👏
I don't know if I could be doing something wrong, but after the update, What seems even stranger to me is that during testing, when doing |
I have the same issue, as i see the problem seems to occur somewhere in the caching, but i cannot say it in detail. |
I also looked into this, including the Agent::retrieveUsingCacheOrResolve()` method, I cleared the cache and everything I could, I hosted it on a server in order to check if it could be a problem on my machine, so far I haven't identified the real problem. Maybe later I look for more. For now, what worked for me was simply modifying the echo to |
@Sarsmooch can you submit a new bug report with Browser + Platform + User Agent string so we can debug this further. |
I don't understand why remove functionalities instead of add new ones!? |
Feel free to add class/feature based on your requirements. |
Jenssegers\Agent\Agent
toLaravel\Jetstream\Agent
isRobot()
detection