wire-extender icon indicating copy to clipboard operation
wire-extender copied to clipboard

Error when enabling 'web' middleware

Open mooxnl opened this issue 1 year ago • 1 comments
trafficstars

I got everything working, except when I enable the 'web' middleware (to support sessions) I get this error: Attempt to read property "only" on string

See:

Scherm­afbeelding 2024-10-25 om 13 12 08

Here, the variable $middleware contains 'web'.

This is my config/wire-extender.php:

<?php

return [
    /*
     * Define middlewares for the `livewire/embed` route.
     * Add the 'web' middleware if you want to support sessions.
     */
    'middlewares' => [
        'web',
    ],
];

Any idea what's wrong?

mooxnl avatar Oct 25 '24 11:10 mooxnl

I have the same problem. The demo doesnt work either.

zerdotre avatar Mar 15 '25 18:03 zerdotre