Get the App
SLTechnology News&Howtos  ›  Development  › 

How does larave get rid of server.php

Shulou Source: shulou.com Published: 2022-06-03 10:43:25 11月15日 Update

This article will explain in detail how to remove server.php from larave. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Laravel method to remove server.php: 1, configure virtual host; 2, point the root path directly to the index.php in public.

This article operating environment: windows7 system, Laravel5.7 version, Dell G3 computer.

How does laravel get rid of server.php?

Laravel had better configure its own virtual host, pointing directly to the index.php in public.

Server.php is actually for php's built-in server. When you use php-Slocalhost:9999 to open the built-in server, you will use server.php to do some url-compatible work.

The best deployment and official recommendation is to point the root path to public, and the entry file is index.php, which can also avoid some security problems.

Related introduction:

Laravel is a concise and elegant PHP Web development framework (PHP Web Framework). It frees you from the noodle-like clutter of code; it helps you build a perfect web APP, and every line of code can be concise and expressive.

There is already a set of advanced PHP ActiveRecord implementations in Laravel-Eloquent ORM. It can easily apply "constraints" to both parties 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 querying constructors (query-builder) in Fluent.

About larave how to get rid of server.php to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Pointing simplicity host code content articles methods more knowledge articles virtual hosts paths services configuration good messy advanced elegant secure entry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux OPPO Reno vpn Shulou Information