Skip to content

Error when enabling 'web' middleware #35

@mooxnl

Description

@mooxnl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions