Laravel-MongoDB CRUD

Create Routes

Now we have to provide the routes to map URLs with Controller Actions. You may either add the routes manually or register a resourceful route to the controller. The routes have to be defined in strong>routes/web.php

In this example we are registering a resourceful route to the controller.