1
我有两个途径有两个不同的控制器:一种形式提交两个动作上点击在laravel
Route::post('/save', '[email protected]')->name('listings.save.store');
Route::post('/publish','[email protected]')->name('listings.publish.store');
我想基于这样
<form action="{{ route('listings.save.store', [$area]) }}" method="post">
<button class="btn btn-default">save</button>
<button class="btn btn-default">publish</button>
点击的按钮从两个路径提交表单