Skip to content

Commit

Permalink
Fix missing method
Browse files Browse the repository at this point in the history
Share method will be removed as of Laravel 5.4

laravel/framework@1a1969b#diff-52441e04e14c52275cd5d09e8f958981L300
  • Loading branch information
micaelpdias authored Jan 10, 2017
1 parent 7a9bfa1 commit 1cd2183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AgentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function boot()
*/
public function register()
{
$this->app['agent'] = $this->app->share(function ($app)
$this->app->singleton('agent', function ($app)
{
return new Agent($app['request']->server->all());
});
Expand Down

0 comments on commit 1cd2183

Please sign in to comment.