Is modifying Laravel base config files a bad idea?
Laravel comes with some basic config files available in config
directory.
which each file is basically an associated array.
now, I want to change the structure of config/mail.php
from
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
to
'from' => [
'noreply' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
]
],
so I can have several emails with differnt name.
My question is generic here.
What are(if any) disadvantages of modifying structure of the config files?
Is it possible to be troublesome between LTS upgrades?
from Laravel Questions and Answers https://laravelquestions.com/laravel/is-modifying-laravel-base-config-files-a-bad-idea/
via Lzo Media
No comments:
Post a Comment