add support to laravel 11 #154
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update for Laravel 11 support in laravel-permission-mongodb
Description
Updated the
composer.jsonto support Laravel 11. Specifically, I changed the dependency constraints forilluminate/auth,illuminate/contracts, andilluminate/supportto be compatible with Laravel 11. Additionally, I updated test cases to use the correctMonolog\Levelenum instead of integers for log level assertions.Motivation and context
This change is required to ensure the
mostafamaklad/laravel-permission-mongodbpackage is compatible with Laravel 11, enabling developers who use the latest version of Laravel to integrate MongoDB-based permission management. It addresses compatibility issues and ensures the package can be used in modern Laravel applications.If it fixes an open issue, please link to the issue here (if you write
fixes #numorcloses #num, the issue will be automatically closed when the pull is accepted.)How has this been tested?
These changes were tested by running the complete test suite using PHPUnit. The tests were conducted in an environment with PHP 8.3 and MongoDB. All existing tests passed successfully after the changes were made, ensuring that the package functions correctly with the updated dependencies.
Screenshots (if appropriate)
Types of changes
What types of changes does your code introduce? Put an
xin all the boxes that apply:Checklist:
Go over all the following points, and put an
xin all the boxes that apply.Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.
If you're unsure about any of these, don't hesitate to ask. We're here to help!