public static function getSchema(string $mapping) : Schema
    {
        $data = Mapping::get($mapping);
        $class = rtrim(ucfirst($data['config']['provider']), '\\') . '\\Schema';

        return new $class($mapping);
    }
public static function getSchema(string $mapping) : Schema
    {
        $data = Mapping::get($mapping);
        $class = rtrim(ucfirst($data['config']['provider']), '\\') . '\\Schema';

        return new $class($mapping);
    }
public static function getSchema ( string $ mapping ) : Schema { $ data = Mapping :: get ( $ mapping ) ; $ class = rtrim ( ucfirst ( $ data [ 'config' ] [ 'provider' ] ) , '\\' ) . '\\Schema' ; return new $ class ( $ mapping ) ; }
Get the schema instance of specified mapping.

@param  string $mapping mapping name
@return Schema schema instance
Get the schema instance of specified mapping .