On GitHub, I saw some laravel5 demon, and found that many people didn't use the service directory.
Reply content:
On GitHub, I saw some laravel5 demon, and found that many people didn't use the service directory.
It's very detailed here.
Http://laravel.com/docs/5.0/structure
Is it because of all the tutorials I've seen? O (╯-╰) o
A joke.
Laravel 4 ERA This Services folder is built on its own, used to put some custom tool classes, such as custom validation, third-party tool library (encryption, mail SMS and other third-party SDK, etc.), the custom tool library (curl, etc.), can be implemented on-demand loading, replace the previous global function/ static functions.
Laravel 5 comes with a /app/Services
folder, which writes a system comes with the Auth user registration function, the original intention is the same as above: 解耦
.
One of the key messages is that 5.0 has been abolished after 5.1.