larave-admin 修改switch按钮路径

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/PerfectUrl/article/details/85116933
$router->put('coinrate/index/{index}', function($index){
    echo 1111;
});

默认走的是update方法,可以在控制器中重新方法逻辑

App\Http\Controllers\Coin\CoinRateController@update
switch 用的ajax采用的put方法,里面的参数必须是index,返回json成功状态

猜你喜欢

转载自blog.csdn.net/PerfectUrl/article/details/85116933