Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lara_Love's avatar

how can make many route on hosting

How can we make many page on host? (i read it in advertising item's website design a company of other item's was able make form for user)

0 likes
7 replies
vincent15000's avatar

How to make many routes or many pages ? What advertising ? I don't understand what you need.

Hello, my car broke down, can you help me, how can I repare it ? ;)

Lara_Love's avatar

@vincent15000 I saw an ad for website design. One of the facilities they offered was the ability to create infinite pages by the user.

1 like
Ben Taylor's avatar

The way I do it is to have a page model. Then I have a route that looks something like this:

Route::get('/{page}', [PageController::class, 'show']);

I use a slug so that the url looks ok. I also add the route to the end of my routes.web file so it doesn't overwrite other routes.

The trickiest bit is building the functionality to allow them to build the page with custom content and styling.

1 like
Lara_Love's avatar

@Ben Taylor What I have in mind: This ad works like a WordPress site where the user can create their own page. But how is it in Laravel?

Lara_Love's avatar

@Ben Taylor Thanks for your help, but I still think this is a very creative and beautiful idea

Ben Taylor's avatar

@LoverToHelp you can build your own CMS like Wordpress on top of laravel if you want. That is what I have done with my project. Users can create their own pages, put in whatever content they want, set media break points to control how it looks at different screen sizes, etc. It just requires a lot of time and effort to get there. You may want to checkout one of the Laravel based CMS's that are already available.

Please or to participate in this conversation.