I have to develop a backend for e-commerce application in laravel
- create APIs for mobile application.
- Create an admin panel to track the application overall
- Create a web front end
Now suppose i have to work on Orders section in this case what should be my approach
Controllers/Api/OrderControllerfor mobile APIControllers/Admin/OrderControllerfor Admin PanelControllers/Web/OrderControllerfor web frontend
Or create a single OrderController and identify that request coming from which application and generate response accordingly
What approach should i use. Please tell me with your experience for designing software.