Closed robbinjohansson closed 3 years ago
Yo,
is it possible to generate routes from slug using an external api as data source? I don't know what {slug} will be, since it's coming from an external source.
{slug}
// routes/web.php Route::statamic('product/{slug}', 'product.show');
If so, not sure how to define it in the config since I don't know the exact url that needs to be generated.
Thanks,
Yo,
is it possible to generate routes from slug using an external api as data source? I don't know what
{slug}
will be, since it's coming from an external source.If so, not sure how to define it in the config since I don't know the exact url that needs to be generated.
Thanks,