首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何配置Laravel路径?

如何配置Laravel路径?
EN

Stack Overflow用户
提问于 2014-07-29 03:45:18
回答 1查看 204关注 0票数 0

我想安装Laravel我的问题是:

/localhost/laravel显示其内容,就像它下面的文件夹一样。

但我期待的东西,像拉拉的标志和文字“你来了”。

我相信这个错误在我的paths.php中是有问题的:

代码语言:javascript
复制
return array(

/*
|--------------------------------------------------------------------------
| Application Path
|--------------------------------------------------------------------------
|
| Here we just defined the path to the application directory. Most likely
| you will never need to change this value as the default setup should
| work perfectly fine for the vast majority of all our applications.
|
*/

'app' => __DIR__.'/../app',

/*
|--------------------------------------------------------------------------
| Public Path
|--------------------------------------------------------------------------
|
| The public path contains the assets for your web application, such as
| your JavaScript and CSS files, and also contains the primary entry
| point for web requests into these applications from the outside.
|
*/

'public' => __DIR__.'/../public',

/*
|--------------------------------------------------------------------------
| Base Path
|--------------------------------------------------------------------------
|
| The base path is the root of the Laravel installation. Most likely you
| will not need to change this value. But, if for some wild reason it
| is necessary you will do so here, just proceed with some caution.
|
*/

'base' => __DIR__.'/..',

/*
|--------------------------------------------------------------------------
| Storage Path
|--------------------------------------------------------------------------
|
| The storage path is used by Laravel to store cached Blade views, logs
| and other pieces of information. You may modify the path here when
| you want to change the location of this directory for your apps.
|
*/

'storage' => __DIR__.'/../app/storage',

 );

和index.php

代码语言:javascript
复制
 require __DIR__.'/../bootstrap/autoload.php';


 $app = require_once __DIR__.'/../bootstrap/start.php';


 $app->run();
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-29 04:00:05

这不是你的路。您应该创建一个虚拟主机,并将虚拟主机的根指向laravel/public

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25007927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档