Skip to content
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

[11.x] Add a new helper for context #50878

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

michaelnabil230
Copy link
Contributor

This PR introduces a new helper function for managing context in applications.

Example usage:

context(['user' => auth()->user()]); // Add user information to the context

$context = context(); // Retrieve the context object

$user = context('user'); // Retrieve user information from the context

This enhancement simplifies the management of contextual data within the application, making it more efficient and readable.

@taylorotwell taylorotwell merged commit 9983d7b into laravel:11.x Apr 1, 2024
28 checks passed
@michaelnabil230 michaelnabil230 deleted the context-helper branch April 15, 2024 22:55
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.

None yet

2 participants