dynamic route using Spatie Settings #219
theshubhamchugh
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a dynamic route using a permalink from the settings database through the Spaite setting package. Currently, I have attempted to use the following configuration:
Set config('boilerplate.page_slug') in AppServiceProvider
Route::get(config('boilerplate.page_slug') . '/{page_slug}', [PageController::class, 'show'])
->name('page.show');
However, when I clear the cache, it defaults back to the value specified in the configuration file.
Beta Was this translation helpful? Give feedback.
All reactions