public function parseKey($key)
    {
        $keys = explode('.', $key);

        $keys = [implode(".", array_slice($keys, 0, -1)), $keys[count($keys) - 1]];

        $key = (new Collection($keys))->map(function ($part) {
            return '`'.$part.'`';
        })->implode('.');

        return DB::raw($key);
    }
public function parseKey($key)
    {
        $keys = explode('.', $key);

        $keys = [implode(".", array_slice($keys, 0, -1)), $keys[count($keys) - 1]];

        $key = (new Collection($keys))->map(function ($part) {
            return '`'.$part.'`';
        })->implode('.');

        return DB::raw($key);
    }
public function parseKey ( $ key ) { $ keys = explode ( '.' , $ key ) ; $ keys = [ implode ( "." , array_slice ( $ keys , 0 , - 1 ) ) , $ keys [ count ( $ keys ) - 1 ] ] ; $ key = ( new Collection ( $ keys ) ) -> map ( function ( $ part ) { return '`' . $ part . '`' ; } ) -> implode ( '.' ) ; return DB :: raw ( $ key ) ; }
Parse key.

@param string $key

@return string
Parse key .