/** * Setup stub path. */ public function setupStubPath() { $this->app->booted(function ($app) { Stub::setBasePath(__DIR__ . '/Commands/stubs'); if ($app['modules']->config('stubs.enabled') === true) { Stub::setBasePath($app['modules']->config('stubs.path')); } }); }