基本的post put删除方法在laravel中不起作用而get方法很好

时间:2016-02-21 19:02:31

标签: laravel laravel-4 laravel-5

<?php

Route::get('/', function()
{
    return View::make('hello');
});
Route::get('getrequest',function(){
    return'get listened';
});
Route::Post('postrequest',function(){
    //echo "post listened";
});
Route::put('putrequest',function(){
    return'put listened';
});
Route::delete('deleterequest',function(){
    return'delete listened';
});

0 个答案:

没有答案