我无法解决 Laravel Livewire 中的错误 404

I can't solve the Error 404 in Laravel Livewire

我对 Laravel 有疑问。我做了一条路线,几天前它运行良好,但现在我不知道为什么。我正在使用 Livewire,所以在路由文件中这是我的代码:

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin;
use App\Http\Livewire;

Route::get('/dashboard', [Admin\AdminController::class, 'index']) -> name('admin.dashboard');
Route::get('/productos', Livewire\Admin\ProductList::class) -> name('admin.products');
Route::get('/productos/crear', Livewire\Admin\ProductCreate::class) -> name('admin.products.create');
Route::get('/productos/editar/{product}', Livewire\Admin\ProductEdit::class) -> name('admin.products.edit');
Route::post('/productos/fotos/{product}', [Admin\ProductController::class, 'photos']) -> name('admin.products.photos');

所有路线都有效,但“/productos/crear”无效。出现 404 错误。

这是我的控制器:

namespace App\Http\Livewire\Admin;

use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Builder;
use Livewire\Component;
use App\Models\Product;
use App\Models\Category;
use App\Models\Subcategory;
use App\Models\Brand;

class ProductCreate extends Component
{

    public function render()
    {
        return view('livewire.admin.product-create');
    }
}

我检查了所有文件名以确保它们是正确的。

我有另一个路由文件,其中第一部分是变量,第二部分是“产品”,第三部分是 slug。这与“admin/products/create”冲突并重定向到 404 页面。