Home > PHP Framework > Laravel > What laravel can do

What laravel can do

藏色散人
Release: 2019-08-05 11:47:10
Original
4200 people have browsed it

What laravel can do

What can laravel do?

Laravel is a simple and elegant PHP Web development framework (PHP Web Framework). It can free you from messy codes like noodles; it can help you build a perfect network APP, and every line of code can be concise and expressive.

Laravel already has an advanced PHP ActiveRecord implementation -- Eloquent ORM. It can easily apply "constraints" to both sides of the relationship, so that you have complete control over the data and enjoy all the conveniences of ActiveRecord. Eloquent natively supports all methods of the query builder (query-builder) in Fluent.

Features

1. The syntax is more expressive

Do you know what "true" means in the following line of code?

$uri = Url::create(‘some/uri’, array(), array(), true);
Copy after login

Also, do you know what the other parameters here mean (except the first one)? Of course you don't know. Because this line of code is not expressive.

Look at this code again:

$url = URL::to_secure(‘some/uri’);
Copy after login

This expression creates a URL link using the HTTPS protocol. In fact, the above two ways of writing are doing the same thing, but which one is better? What about being clear at a glance and more expressive?

2. High-quality documentation

Laravel has a great community support. The expressiveness and good documentation of the Laravel code itself make PHP programming a pleasure.

3. Rich expansion packages

Bundle is the name for expansion packages in Laravel. It can be anything - as large as a complete ORM, as small as a debug tool, or just copy & paste to install any extension! Laravel's extension packs are contributed by developers from all over the world, and more are constantly being added.

4. Open source and hosted on GITHUB

Laravel is completely open source. All code is available on Github, and you are welcome to contribute.

The above is the detailed content of What laravel can do. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template