withToken($token); */ class Boot extends ServiceProvider { /** * Register services. */ public function register(): void { $this->app->singleton(Registry::class, function () { $registry = new Registry; $registry->discover(); return $registry; }); $this->app->alias(Registry::class, 'plug.registry'); } /** * Bootstrap services. */ public function boot(): void { // Pure library module - no routes, views, or migrations } }