Seeker1337
4 months ago
597
5
Laravel

Laravel 6 - I would need a few tips on Dynamic Pages

Posted 4 months ago by Seeker1337

Hello there. Basically I have a page related to "Autoparts" and a sidebar containing around 30 different categories and sub-categories. When the user clicks on e.g "Engines" he/she should be redirected to a dynamic page containing only "Engines" ( as well as the sidebar again and the header ). ( www.mywebsite.com/autoparts/engines ). Or if the user clicks on "Brakes" he/she should be redirected to a dynamic page containing only "Brakes" ( as well as the sidebar again and the header ) .

I can do all of this with static pages but I don't think that's the best approach, since we are talking about many pages.

I don't have any code as of the moment but all I need from you guys is just a few tips on how to deal with this using "Dynamic pages". Shall I create a DB table storing URL paths or something like that? And then use routes that take the path and an unique ID?

I would be glad to code this myself but I'm not sure what's the best approach. Thank you all for your time and help.

Please sign in or create an account to participate in this conversation.