@aurorame For something like this, I would not bother making a trait - it's not the right use case for a trait.
Create yourself a config file and just drop your array in there.
Do this in config/someconfig.php
And it should look like this:
return [
'myconfigarrayname' => [ // <-- this is your main key for the entire array
'key1' => 'value1',
'key2' => 'value2',
//...etc
];
Then, wherever you want to use it or need it (since you want the entire array), you can just call it like this:
$someArrayYouWantToUse = config('myconfigarrayname');
And, if you would like to just get a specific key from the array in your config, just use dot notation.
$myParameter = config('myconfigarrayname.key1');
Hope this helps