src/Traits/Database/SchemaTrait.php
public function getDefaultSchema(): ?Builder
    {
        // By default, the schema facade depends upon a
        // database connection being available. Therefore,
        // we need to ensure that this is true, before
        // attempting to return the facade-root
        $manager = DB::getFacadeRoot();
        if (isset($manager) && ! is_null($manager->connection())) {
            return Schema::getFacadeRoot();
        }
        return $manager;
    }
public function getDefaultSchema(): ?Builder
    {
        // By default, the schema facade depends upon a
        // database connection being available. Therefore,
        // we need to ensure that this is true, before
        // attempting to return the facade-root
        $manager = DB::getFacadeRoot();
        if (isset($manager) && ! is_null($manager->connection())) {
            return Schema::getFacadeRoot();
        }
        return $manager;
    }
public function getDefaultSchema ( ) : ? Builder { // By default, the schema facade depends upon a // database connection being available. Therefore, // we need to ensure that this is true, before // attempting to return the facade-root $ manager = DB :: getFacadeRoot ( ) ; if ( isset ( $ manager ) && ! is_null ( $ manager -> connection ( ) ) ) { return Schema :: getFacadeRoot ( ) ; } return $ manager ; }
Get a default schema value, if any is available

@return Builder|null A default schema value or Null if no default value is available
Get a default schema value if any is available