Home > Backend Development > PHP Tutorial > laravel5 url不能访问指定控制器

laravel5 url不能访问指定控制器

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:25:08
Original
1505 people have browsed it

我在我的routes.php中配置了如下图所示,

laravel5 url不能访问指定控制器

然后通过浏览器去访问TestController,但是报错,如图(laravel.com是我本地虚拟机的域名)

laravel5 url不能访问指定控制器

这里是TestController

laravel5 url不能访问指定控制器

请教各位,谁能帮我解答一下?
不胜感激!

回复内容:

我在我的routes.php中配置了如下图所示,

laravel5 url不能访问指定控制器

然后通过浏览器去访问TestController,但是报错,如图(laravel.com是我本地虚拟机的域名)

laravel5 url不能访问指定控制器

这里是TestController

laravel5 url不能访问指定控制器

请教各位,谁能帮我解答一下?
不胜感激!

试试命令行来到项目目录,再执行:

<code>php artisan serve </code>
Copy after login

然后访问 屏幕提示的地址

之前写过的教程在这里:

http://segmentfault.com/blog/jellybool

试试artisan清缓存命令,具体我忘了

apache配的有问题吧
laravel.com/index.php?test 试试

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template