thinkphp获取项目根目录

tp5

Env::get('root_path');

tp6

$root = app()->getRootPath();

原文地址:https://www.cnblogs.com/jigr/p/15425335.html