original_string: protected function getPrimaryOptions($url)
      {
          return array_filter([
              'driver' => $this->getDriver($url),
              'database' => $this->getDatabase($url),
              'host' => $url['host'] ?? null,
              'port' => $url['port'] ?? null,
              'username' => $url['user'] ?? null,
              'password' => $url['pass'] ?? null,
          ], function ($value) {
              return ! is_null($value);
          });
      }
code: protected function getPrimaryOptions($url)
      {
          return array_filter([
              'driver' => $this->getDriver($url),
              'database' => $this->getDatabase($url),
              'host' => $url['host'] ?? null,
              'port' => $url['port'] ?? null,
              'username' => $url['user'] ?? null,
              'password' => $url['pass'] ?? null,
          ], function ($value) {
              return ! is_null($value);
          });
      }
code_tokens: protected function getPrimaryOptions ( $ url ) { return array_filter ( [ 'driver' => $ this -> getDriver ( $ url ) , 'database' => $ this -> getDatabase ( $ url ) , 'host' => $ url [ 'host' ] ?? null , 'port' => $ url [ 'port' ] ?? null , 'username' => $ url [ 'user' ] ?? null , 'password' => $ url [ 'pass' ] ?? null , ] , function ( $ value ) { return ! is_null ( $ value ) ; } ) ; }
docstring: Get the primary database connection options.
  
  @param  array  $url
  @return array
docstring_tokens: Get the primary database connection options .