我正在尝试将URL传递给控制器。如何将URL作为查询字符串传递?
http://something/index.php/api/http%3A%2F%2Fengadget.com
我得到404 Not Found错误。
我的路线
Route::any("/api/{url}", "[email protected]");
如何配置路由或控制器,使其工作?
我正在尝试将URL传递给控制器。如何将URL作为查询字符串传递?
http://something/index.php/api/http%3A%2F%2Fengadget.com
我得到404 Not Found错误。
我的路线
Route::any("/api/{url}", "[email protected]");
如何配置路由或控制器,使其工作?
Route::any("/api/(:all)", "[email protected]");
http://laravel.com/docs/routing#wildcards
可以使用(:全部)抓的URI
其余如何没有 “API” 前面的/?
你在使用Laravel 3还是4? – Anujan