我刚装了一份新的拉拉5.2。插入命令: php make:auth转到浏览器,输入:http://localhost/mywebsite/public/login。我得到了一个错误:网页找不到。我在用WAMP。
编辑:这就是它在Chrome上的表现:
未找到
在此服务器上找不到请求的URL /mywebsite/public/login。
Route.php:
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('test', function () {
return view('index') ;
});
Route::group(['middleware' => 'web'], function () {
Route::auth();
Route::get('/home', 'HomeController@index');
});编辑2:
尝试之后,我只能访问第一个页面,但是如果尝试其他路由,work.All路由将不会返回不存在的页面。
发布于 2016-01-14 15:10:04
在Apache中启用mod_rewrite,使默认的.htaccess文件能够正确工作。
https://stackoverflow.com/questions/34791943
复制相似问题