Skip to content

Instantly share code, notes, and snippets.

@dusterio
Created November 14, 2016 03:56
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