这是我的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', 'AdminControllersAdminLoginController@index')->name('adminlogin');
Route::post('/adminPostLogin', 'AdminControllersAdminLoginController@login')->name('adminPostLogin');
当我尝试在Liveware中做一些事情时,会出现这样的错误!!!
Failed to load resource: the server responded with a status of 404 (Not Found)
但当我评论中间件时,Liveware正在工作,所以我应该做什么,请给出建议!!!
它正在工作,我只是在Web 中添加了这段代码
Route::post('livewire/message/{name}', 'LivewireControllersHttpConnectionHandler');
您必须配置Livewire的更新端点。
文档中有描述https://livewire.laravel.com/docs/installation#configuring-livewires更新端点