Use inside config #144
-
What should be done to use these settings inside config files such as |
Beta Was this translation helpful? Give feedback.
Answered by
rubenvanassche
Sep 7, 2022
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.
6 replies
Answer selected by
hamzaelmaghari
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You overwrite the config by loading settings classes within the boot method of your AppServiceProvider for example.