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.
3 Replies
Dan Harrin
Dan Harrin2y ago
is this filament related? we dont use controllers
Shubham chugh
Shubham chughOP2y ago
It is not related to filament, but it utilizes the spaite settings and Laravel request lifecycle
Dan Harrin
Dan Harrin2y ago
please ask in the Laravel Discord instead
Want results from more Discord servers?
Add your server