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
is this filament related? we dont use controllers
It is not related to filament, but it utilizes the spaite settings and Laravel request lifecycle
please ask in the Laravel Discord instead