setBasePath() public static method

Set base path.
public static setBasePath ( string $path )
$path string
 /**
  * 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'));
         }
     });
 }