Skip to content

[12.x] fixes https://github.com/laravel/octane/issues/1010 #55008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mihaileu
Copy link
Contributor

fixes laravel/octane#1010
Not sure if is the best way, but from my tests is fixing my problem.

@mihaileu mihaileu changed the title fixes https://github.com/laravel/octane/issues/1010 [12.x] fixes https://github.com/laravel/octane/issues/1010 Mar 13, 2025
@cosmastech
Copy link
Contributor

@mihaileu do you have a repo where I can see this failing, per chance?

@mihaileu
Copy link
Contributor Author

@cosmastech it should work with some simple code like bellow, but you need to run it via octane + swoole

Route::name('welcome')
    ->get('/', function () {
        Context::add('x', 'y');
        \Log::info('test');
        
    });

@taylorotwell taylorotwell merged commit 0e38972 into laravel:12.x Mar 13, 2025
24 checks passed
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.

context missing after migrating to laravel 12
3 participants