public function initialize() : void
  {
    $connection = config('database.default');

    Accessor::$appRoot       = config('app.dir');
    UpstartConfig::$database = config("database.connections.{$connection}");

    if (!DB::start()) {
      $this->exception('Could not establish a database connection.');
    }

    $this->loadView();
  }
public function initialize() : void
  {
    $connection = config('database.default');

    Accessor::$appRoot       = config('app.dir');
    UpstartConfig::$database = config("database.connections.{$connection}");

    if (!DB::start()) {
      $this->exception('Could not establish a database connection.');
    }

    $this->loadView();
  }
public function initialize ( ) : void { $ connection = config ( 'database.default' ) ; Accessor :: $ appRoot = config ( 'app.dir' ) ; UpstartConfig :: $ database = config ( "database.connections.{$connection}" ) ; if ( ! DB :: start ( ) ) { $ this -> exception ( 'Could not establish a database connection.' ) ; } $ this -> loadView ( ) ; }
Initialize Database connection and Environment variables

@return void
Initialize Database connection and Environment variables