Skip to content

Add faq in readme#101

Merged
toonvandenbos merged 5 commits into
2.xfrom
add-faq-in-readme
Mar 6, 2026
Merged

Add faq in readme#101
toonvandenbos merged 5 commits into
2.xfrom
add-faq-in-readme

Conversation

@Debatty-Tom

Copy link
Copy Markdown
Contributor

The issue #88 report that the cookie consent state was not being saved correctly when running Laravel 11 with Octane, something caused by Laravel Octane comportement. I added this to help people in the same use case.

@toonvandenbos toonvandenbos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add other frequently asked questions?

Comment thread README.md Outdated
## FAQ

<details open>
<summary>If you use Laravel Octane with Laravel 11</summary>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rephrase as a question.

Comment thread README.md Outdated
<details open>
<summary>If you use Laravel Octane with Laravel 11</summary>

It optimizes your application by storing requests in RAM. Some reports mention that you need to flush the cookieConsent class to ensure it correctly saves the consent value, like so in your config/octane.php:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"It" is not a clear answer. Please add more context.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also:

Some reports mention that you need to flush the cookieConsent class to ensure it correctly saves the consent value, like so in your config/octane.php:

...does not sound like a real answer.

Maybe something like (please check typos):

In order to reset the cookies setup for each incoming Octane request:
1. Make sure the [insert cookie names] cookies are not encrypted
2. Add the following items to the flushed dependencies in `config/octane.php`:

@Debatty-Tom Debatty-Tom changed the base branch from main to 2.x October 22, 2025 12:56
@toonvandenbos toonvandenbos merged commit d3d07ac into 2.x Mar 6, 2026
18 checks passed
@toonvandenbos toonvandenbos deleted the add-faq-in-readme branch March 6, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants