src/UniqueTranslationValidator.php
protected function getConnectionAndTable($parameters)
    {
        $parts = explode('.', $this->getParameter($parameters, 0));

        $connection = isset($parts[1])
            ? $parts[0]
            : Config::get('database.default');

        $table = $parts[1] ?? $parts[0];

        return [$connection, $table];
    }
protected function getConnectionAndTable($parameters)
    {
        $parts = explode('.', $this->getParameter($parameters, 0));

        $connection = isset($parts[1])
            ? $parts[0]
            : Config::get('database.default');

        $table = $parts[1] ?? $parts[0];

        return [$connection, $table];
    }
protected function getConnectionAndTable ( $ parameters ) { $ parts = explode ( '.' , $ this -> getParameter ( $ parameters , 0 ) ) ; $ connection = isset ( $ parts [ 1 ] ) ? $ parts [ 0 ] : Config :: get ( 'database.default' ) ; $ table = $ parts [ 1 ] ?? $ parts [ 0 ] ; return [ $ connection , $ table ] ; }
Get the database connection and table name.

@param array $parameters

@return array
Get the database connection and table name .