Dynamic Route
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.
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.