Under what circumstances should templates be used in Laravel? What are the advantages of templates?

Laravel has just started, watching video self-study and making a few web pages, but the use of templates has been unclear. I only use views and controllers to write my own web pages, so come up and ask the great gods under what circumstances they will use Model?. Or what are the advantages of using templates?

Mar.06,2021

is not a template, it is a model. Generally speaking, it is best to put all database operations at the model level.
in MVC,

1. Model ;
2. View ;
3. Controller 
for Model, the most important thing is to save and output information.
Link description

it is recommended to read more official documents about ORM model associations, modifiers and other related chapters, and combined with practice, I believe you will have a deeper understanding and experience
clipboard.png

Menu