Skip to content

Instantly share code, notes, and snippets.

@dusterio
Created November 14, 2016 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dusterio/a2df0743199dbf14a1e66d86c0fdaac3 to your computer and use it in GitHub Desktop.
Save dusterio/a2df0743199dbf14a1e66d86c0fdaac3 to your computer and use it in GitHub Desktop.
<?php
class AppServiceProvider extends ServiceProvider
{
/**
* @return void
*/
protected function registerRoutes()
{
$registry = $this->app->make(RouteRegistry::class);
if ($registry->isEmpty()) {
Log::info('Not adding any service routes - route file is missing');
return;
}
$registry->bind(app());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment