Laravel5 's app directory has a more service directory, what is the use of?

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.