D
D
DmitryLife2021-02-14 23:05:34
Laravel
DmitryLife, 2021-02-14 23:05:34

How to make duplicate pages in Laravel?

Good afternoon.

There is a task to automatically create new pages from the admin panel of the site.ru/city/type/setting1 type.

This could be implemented through a route with variables, such as

Route::get('/{city}/{type}/{setting}','[email protected] );

And then the variables are pulled out of the database, compared with the client's path and display the necessary data.

But the problem is that I have to have pages like site.ru/blog.
And then the blog will fall under the city variable.

I don't quite understand how to organize it architecturally. How to do it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question