laravel中常用的获取路径的函数

1. app_path() // 获取app目录的路径

2. base_path() // 根目录的路径

3. config_path() // config目录的路径

4. public_path() // public目录的路径

5. database_path() // database的路径

6. storage_path() // storage的路径

posted @ 2019-03-15 10:36  泥土里的绽放  阅读(791)  评论(0编辑  收藏  举报