Skip to content

Workaround/Settings for Laravel Octane #88

@sando57

Description

@sando57

I had issues with the Cookie state not saving on octane with Laravel 11, I resolved it with 3 changes.

Hard coding the consent cookie name in config/cookieconsent.php

Manually adding the consent cookie name to
$middleware->encryptCookies(except: [])
in bootstrap/app.php

and adding

    'flush' => [
        'cookie.consent',
        \WhiteCube\LaravelCookieConsent\CookieConsent::class,
    ],

to config/octane.php

Its now working fine in Laravel 11 with Octane

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