Home >Backend Development >PHP Tutorial >Where does laravel write this method, in the model class? Another layer of MVC?

Where does laravel write this method, in the model class? Another layer of MVC?

WBOY
WBOYOriginal
2016-08-04 09:21:201051browse

It’s not suitable in the Model class
Where does laravel write this method, in the model class? Another layer of MVC?

Reply content:

It’s not suitable in the Model class
Where does laravel write this method, in the model class? Another layer of MVC?

service logic repoise lamp

Of course the model directly deals with the database, and the logical things can be abstracted into a logic layer

Don’t bring in TP’s thoughts

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn