Use inside config #144
-
What should be done to use these settings inside config files such as |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You overwrite the config by loading settings classes within the boot method of your AppServiceProvider for example. |
Beta Was this translation helpful? Give feedback.
-
Set config('boilerplate.page_slug') in AppServiceProvider Route::get(config('boilerplate.page_slug') . '/{page_slug}', [PageController::class, 'show']) However, when I clear the cache, it defaults back to the value specified in the configuration file. any solution? |
Beta Was this translation helpful? Give feedback.
You overwrite the config by loading settings classes within the boot method of your AppServiceProvider for example.