当我提交此表单时,页面上有一个评论表单,它将重定向到主页。
路线
build.gradle
刀片
Route::get('/post/{slug}', 'API\PostController@show')->name('post.show');
Route::post('/post/{slug}', 'API\PostController@addComment')->name('post.comment');
Route::get('{path}',"HomeController@index")->where( 'path', '([A-z\d-\/_.]+)?' );