/** * Perform post-registration booting of services. * * @return void */ public function boot() { // Registering custom tags Tag::registerTagHandler('apiParam', '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag'); // Set router RouteResolver::setRouter(app()->make('router')); // use this if your package needs a config file // $this->publishes([ // __DIR__.'/config/config.php' => config_path('skeleton.php'), // ]); // use the vendor configuration file as fallback // $this->mergeConfigFrom( // __DIR__.'/config/config.php', 'skeleton' // ); }
/** * Returns docs generator for routes that starts with given prefix * * @param string $prefix * * @return RouteDocsGenerator */ public static function forRoutesWithPrefix($prefix) { $routes = RouteResolver::describeRoutes(RouteResolver::getRoutesByPrefix($prefix)); return RouteDocsGenerator::getInstance($prefix, $routes); }