【发布时间】:2013-05-26 07:05:52
【问题描述】:
在 routes.php 中:
Route::controller('account', 'AccountController');
在 ajax -> 控制器中:
POST /account/password_reset -> postPasswordReset //not working
POST /account/passwordReset -> postPasswordReset //not working
POST /account/password_reset -> postPassword_reset //not working
POST /account/passwordreset -> postPasswordreset //working
我对第一个选项有印象(并且更喜欢),但它对我来说不是那样的。这里应该发生什么?
【问题讨论】:
-
你试过用
php artisan route检查你的路线吗? -
不确定如何使用它,但听起来很棒。我的服务器上收到了
Command "route" is not defined. -
啊,我猜只需要更新我的 laravel 到 4.0.0
-
我知道这是一个老问题,但是对于任何来这里的人来说,使用上面提到的 artisan 的 route 命令感到困惑,语法是:
php artisan route:list
标签: routing laravel camelcasing