Skip to content

v1.0 #2

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
merged 38 commits into from
Jul 8, 2025
Merged

v1.0 #2

merged 38 commits into from
Jul 8, 2025

Conversation

datpmwork
Copy link
Owner

No description provided.

datpmwork and others added 30 commits July 2, 2025 23:28
Adds a mechanism to preserve the authenticated user context when dispatching queued jobs, listeners, and notifications.

Includes a trait to capture the authenticated user before serialization and a middleware to restore the context during job execution, ensuring access to the correct user.

Updates test suite configuration

Refactors the test suite configuration to improve reliability and reduce redundancy.

- Uses a matrix strategy for PHP and Laravel versions.
- Introduces stability constraints.
- Removes OS matrix.
- Removes unnecessary extensions.

Update Name
Removes support for older PHP and Laravel versions and updates
the test matrix accordingly.

This ensures compatibility with actively maintained versions
and simplifies the testing process.
Updates the service provider to extend the base Laravel ServiceProvider
instead of spatie/laravel-package-tools.
Removes package configuration.
Updates development dependencies in composer.json to more specific and/or newer compatible versions. This ensures better stability and compatibility within the development environment.
The HasRoutes trait was part of a package and is no longer needed
in the User model after refactoring. This change removes the trait.
Extends the allowed versions of the testbench dependency.

This change broadens compatibility with newer Laravel versions,
allowing the package to be used in projects running Laravel 9 and 10,
in addition to Laravel 8.
Removes static analysis tooling dependencies and configuration.

This simplifies the development environment and reduces the number of
dependencies.
Enhances compatibility by relaxing PHP and Laravel version constraints.

Adds static analysis tools for improved code quality and reliability.
Removes minimum stability constraint.
datpmwork and others added 8 commits July 4, 2025 08:53
Ensures that the authenticated user's context is maintained when dispatching jobs to the queue.

This is achieved by serializing the authenticated user's identifier and restoring it when the job is processed.

Adds a trait to simplify middleware assignment for authenticated jobs.

Also includes formatting rules for code style consistency.
Ensures the correct authentication context is preserved when dispatching jobs to the queue.
This prevents issues where the authenticated user is not available within the job's execution context.

Adds a check to only serialize the auth user if the job uses the `WasAuthenticated` trait.
This avoids potential errors when the job does not require authentication.

Updates the supported PHP and Laravel versions in the README.
@datpmwork datpmwork merged commit df322c0 into main Jul 8, 2025
2 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.

1 participant