Inject route and model to perform database related task in least code that possible
- make a model
- make a controller
Database Structure
to fetch all the data based on id
Screentshots
to fetch based on name
Screentshots
It will give only one data entry in return but to get all the data