Skip to content

Laravel octane (not merge)#8862

Open
rodriquelca wants to merge 1 commit into
feature/FOUR-26166-bfrom
laravel-octane
Open

Laravel octane (not merge)#8862
rodriquelca wants to merge 1 commit into
feature/FOUR-26166-bfrom
laravel-octane

Conversation

@rodriquelca

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

When running ProcessMaker with Laravel Octane, the application may reuse service container instances across requests. The SetLocale middleware relied on App::setLocale(), which indirectly depends on application configuration services.

In scenarios where a stale or invalid configuration binding exists within a long-lived Octane worker, locale initialization can fail and affect request processing.

Solution

The SetLocale middleware was updated to make locale initialization more resilient when running under Laravel Octane.

current
image
with octane
image

How to Test

  1. Log in with a user configured with language en.
  2. Verify the application is displayed in English.
  3. Change the user's language to another supported locale (for example es).
  4. Refresh the application.
  5. Verify translations are displayed in the selected language.
  6. Verify localized date formatting continues to work correctly.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@rodriquelca rodriquelca changed the base branch from develop to feature/FOUR-26166-b June 10, 2026 19:53
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.

1 participant