我写了一条接受邮寄请求的路线:
Route::post('/imageprocessor', 'ImageProcessorController@processImage');
和Postman我发送了一个请求帖给http://queue_processor.local/imageprocessor
回来:
MethodNotAllowedHttpException
和响应标题:
Cache-Control →no-cache, private
Connection →keep-alive
Content-Type →text/html; charset=UTF-8
Server →nginx/1.13.3
Transfer-Encoding →chunked
allow →GET, HEAD
date →Fri, 13 Apr 2018 12:57:17 GMT
我的路线列表是:
+--------+----------+----------------+------+------------------------
------------------------------------+------------+
| Domain | Method | URI | Name | Action
| Middleware |
+--------+----------+----------------+------+------------------------
------------------------------------+------------+
| | GET|HEAD | / | | Closure
| web |
| | POST | imageprocessor | |
App\Http\Controllers\ImageProcessorController@processImage | web
|
+--------+----------+----------------+------+------------------------
------------------------------------+------------+
出了什么问题?