我在项目中为许多lang安装了mcamara软件包,但问题是当我将函数放置在route中并将我的路由放入 mcamara 函数中时, strong> POST 路线不起作用?
代码:
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]
],
function()
{
Route::group(['middleware' => 'maintenance', 'namespace'=>'mySite'], function() {
Route::get('/', 'loginController@login')->name('login');
Route::post('/', 'loginController@do_login');
Route::get('/logout', 'after_loginController@logout')->name('logout');
Route::post('/logout', 'after_loginController@logout')->name('logout');
Route::get('/home', 'after_loginController@home');
Route::post('/home/{id_q}/send', 'after_loginController@sendAnswer');
Route::get('/thanks', 'after_loginController@thanksPage');
Route::get('/result', 'after_loginController@result');
});
});
这里有任何解决方法吗?