Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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