Skip to content

Commit 6c734c4

Browse files
committed
Set http headers from laravel request
sets the http headers on mobile detect from the laravel request headers, so headers wont be taken directly from global $_SERVER.
1 parent 7f763bc commit 6c734c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AgentServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function register()
2626
{
2727
$this->app['agent'] = $this->app->share(function ($app)
2828
{
29-
return new Agent;
29+
return new Agent($app['request']->server->all());
3030
});
3131
}
3232

0 commit comments

Comments
 (0)