public static function setup(string $connection = 'Default') {
    // First, create a new `Capsule` manager instance. Capsule aims to make configuring the library for usage outside of
    // the Laravel framework as easy as possible.
    $capsule = new Capsule();

    // Add connection to Capsule.
    $capsule->addConnection(self::getConnection($connection));

    // Make this Capsule instance available globally via static methods.
    $capsule->setAsGlobal();

    // Setup the Eloquent ORM.
    $capsule->bootEloquent();
  }
public static function setup(string $connection = 'Default') {
    // First, create a new `Capsule` manager instance. Capsule aims to make configuring the library for usage outside of
    // the Laravel framework as easy as possible.
    $capsule = new Capsule();

    // Add connection to Capsule.
    $capsule->addConnection(self::getConnection($connection));

    // Make this Capsule instance available globally via static methods.
    $capsule->setAsGlobal();

    // Setup the Eloquent ORM.
    $capsule->bootEloquent();
  }
public static function setup ( string $ connection = 'Default' ) { // First, create a new `Capsule` manager instance. Capsule aims to make configuring the library for usage outside of // the Laravel framework as easy as possible. $ capsule = new Capsule ( ) ; // Add connection to Capsule. $ capsule -> addConnection ( self :: getConnection ( $ connection ) ) ; // Make this Capsule instance available globally via static methods. $ capsule -> setAsGlobal ( ) ; // Setup the Eloquent ORM. $ capsule -> bootEloquent ( ) ; }
Setup the Eloquent ORM.

@param string $connection The optional connection, defaults to `Default`
Setup the Eloquent ORM .