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: 
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.
global.scss

```
$primary-color: #d51a1a; //Red

:export {
  appColor: $primary-color;
}

```

app.vue

```
import variables from '../global.scss'

```

you can access it by using :

```
variables.locals.appColor

```