In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.