[英]POST 404 with Livewire + mcamara/laravel-localization
This my Web Route这是我的 Web 路线
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath']
], function(){
Route::group(['prefix' => 'admin'], function () {
Route::get('/', 'AdminController@index')->name('admin.index');
Route::get('/adminlogin', 'AdminControllers\AdminLoginController@index')->name('adminlogin');
Route::post('/adminPostLogin', 'AdminControllers\AdminLoginController@login')->name('adminPostLogin');
When I try to do something in Liveware this give like this error!!!当我尝试在 Liveware 中做某事时,会出现这样的错误!!!
Failed to load resource: the server responded with a status of 404 (Not Found)
But when I commented middleware, Liveware is working, so what I should do pls give advise!!!但是当我评论中间件时,Liveware 正在工作,所以我应该怎么做请指教!!!
It is working I just add this code inside Web它正在工作我只需在 Web 中添加此代码
Route::post('livewire/message/{name}', '\Livewire\Controllers\HttpConnectionHandler');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.