在views / auth文件夹和路由中创建两个表单(login.blade.php和register.blade.php)之后:
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');
// Registration routes...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
我可以登录并注册 http://localhost/crud/public/auth/login http://localhost/crud/public/auth/register 但是在我填写表格并按注册后发生了这个错误:
Not Found
The requested URL /auth/register was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
在哪里可以找到控制器,或者我需要在自己的控制器上实现一些代码? 非常感谢