Skip to content

Commit

Permalink
Merge pull request #10 from Giacomo92/Giacomo92-add-compatibility-to-…
Browse files Browse the repository at this point in the history
…laravel-57

Added support to laravel 5.7
  • Loading branch information
jayhealey committed Jul 19, 2019
2 parents b780d70 + befe36f commit 3bad613
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Healey/Robots/RobotsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RobotsServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->package('healey/robots');

}

/**
Expand All @@ -28,10 +28,9 @@ public function boot()
*/
public function register()
{
$this->app['robots'] = $this->app->share(function($app)
{
return new Robots();
});
$this->app->singleton('robots', function () {
return new Robots();
});

$this->app->booting(function()
{
Expand All @@ -40,4 +39,4 @@ public function register()
});
}

}
}

0 comments on commit 3bad613

Please sign in to comment.