Home  >  Article  >  PHP Framework  >  How to remove server.php in laravel

How to remove server.php in laravel

藏色散人
藏色散人Original
2021-09-21 10:43:332120browse

How to remove server.php in laravel: 1. Configure the virtual host; 2. Point the root path directly to index.php in public.

How to remove server.php in laravel

The operating environment of this article: Windows 7 system, Laravel version 5.7, Dell G3 computer.

How to remove server.php in laravel?

It is best for laravel to configure the virtual host by itself and point directly to the index.php in public.

server.php is actually used for PHP's built-in server. When using php-Slocalhost:9999 to open the built-in server, server.php will be used to do some URL compatibility work;

Best deployment At the same time, it is also officially recommended to point the root path to public, and the entry file is index.php, which can also avoid some security issues.

Related introduction:

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.

Recommended: "laravel tutorial"

The above is the detailed content of How to remove server.php in laravel. For more information, please follow other related articles on the PHP Chinese website!

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