Route::get('/', function () {
return view("welcome");//可以
});
Route::get('/about', function () {
return 'about';//如上图404
});
phpstudy 搭建(5.5.38)
这个照搜的教程也打开了
配置:
命令行
laravel中public
麻烦大佬,得空给看看了~_~
慕无忌1623718
浏览 1288回答 2
2回答
潇潇雨雨
<VirtualHost *:555>
DocumentRoot "D:\phpStudy\WWW\laravel\public"
ServerName localhost
ServerAlias localhost
<Directory "D:phpStudyWWWlaravelpublic">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory></VirtualHost>
配置中指向public