Replies: 3 comments 1 reply
-
You can try the old laravel 10 way with service providers. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because my app does not require cookie encryption, I disable it altogether. ->withMiddleware(function (Middleware $middleware) {
// Remove the default middlewares
$middleware->web(
remove: [
\Illuminate\Cookie\Middleware\EncryptCookies::class,
],
);
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@binarweb did you understood our comment? You can keep the above and also use what we suggested. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
12.3.0
PHP Version
8.2.28
The manual states that cookie are encrypted by default and can be added to exceptions with:
However, if one where to add those exceptions from a config file:
the config is not yet available in the container and would throw:
How would one bypass this exception and still load the config from container?
Beta Was this translation helpful? Give feedback.
All reactions