【发布时间】:2014-05-09 00:41:28
【问题描述】:
我将 Laravel 安装在一个子目录中,例如: 根 - mylaravel
当我使用命令生成 URL 时:{{ URL::route('controller.show', $controller->slug) }}
它会生成一个 URL,如:http://localhost/controller/show/asdf 但应该是:http://localhost/mylaravel/controller/show/asdf
在 app.php 中我尝试过:
- 'url' => 'http://localip/phptodomanager'
- 'url' => 'http://localhost/phptodomanager'
【问题讨论】:
-
发布您的路线文件。
-
使用虚拟主机,检查this answer。