Question: i need to get the values without string in array. this will be name of fields :

```
 static function showCust(){
   $table = DB::table("dummy_db.customer")->select("*")->paginate(10);
   $getFieldName = ["CUST_NAME", "CUST_CITY"];

   foreach($table as $items){
        $a[] = $items->$getFieldName[0];
   }
   dd($a);
}

```

but the results : 

`ErrorException
Array to string conversion.`

Answer: 
Unfortunately the SASS/SCSS documentation does not mention anything about `export`, and as such, other than guessing and solving it through trial and error, your best bet is to migrate to SCSS and implement the solution that is widely used (but also not documented).

Personally, I like to import my SCSS variables, and then, export them to JS. So my `_export.scss` file looks like this:

```
@import "variables";

:export {

    // Export the color palette to make it accessible to JS
    some-light-blue: $some-light-blue;
    battleship-grey: $battleship-grey;
    // etc...

}

```

**NOTE:** It is vitally important that `_export.scss` is only utilised in JS files, and is not imported in SCSS files. Importing `_export.scss` into your SCSS files will result in a) unecessary style exports in your CSS, and b) duplications of these style exports throughout every compiled SCSS file
You can use [CSS Modules](https://github.com/css-modules/css-modules) in you [Vue SFC styles block](https://cli.vuejs.org/guide/css.html#css-modules), which [would look something like](https://www.netguru.com/codestories/vue.js-scoped-styles-vs-css-modules) this:

```
<template>
  <button :class="$style.button" />
</template>

<style module>
  .button {
    color: red
  }
</style>

```

Also please note that often times people are talking about using Sass, but in actuality they are or should be using `.scss` file type, which is the modern syntax compared to older `.sass`, but its a matter of taste really.