Using yield can greatly reduce server overhead, and the pressure is on the database. The upper limit has not been tested, but 10,000 data is very easy.
Sometimes, we need to add multiple routes to our Laravel application. Here we will create dynamic routes so that we can use as many parameters as possible