Learning Laravel Those pits (four) routes

Source: Internet
Author: User

Position

location

At 5.4, the route is still

app/http/routes.php

When I was 5.6, I moved it out of the app directory.

routes/web.php

For an MVC framework, how to parse the route is a very important issue, so it is really good to change.

It is also learned that the Laravel route is based on Symfony, the slower part of Laravel should be routed, Laravel based Lumen for performance, abandon Symfony routing components to use Fastroute, good news is:

[Routing] Match 77.7x faster by compiling routes in one regexp by Nicolas-grekas Pull Request #26059 • Symfony/symfony,

This means that future Symfony 4.1 will improve routing performance, and the community expects that the Laravel will update the Symfony components to the latest in the future, thereby greatly improving performance. This is a digression, the first longing for it.

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.