Closed brahimrizqHireme closed 4 months ago
@mostafamaklad can you change to github action for testing https://github.com/marketplace/actions/setup-php-action
Done github actions are now available check this https://github.com/mostafamaklad/laravel-permission-mongodb/pull/155
Update for Laravel 11 support in laravel-permission-mongodb
Description
Updated the
composer.json
to support Laravel 11. Specifically, I changed the dependency constraints forilluminate/auth
,illuminate/contracts
, andilluminate/support
to be compatible with Laravel 11. Additionally, I updated test cases to use the correctMonolog\Level
enum instead of integers for log level assertions.Motivation and context
This change is required to ensure the
mostafamaklad/laravel-permission-mongodb
package 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 #num
orcloses #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
x
in all the boxes that apply:Checklist:
Go over all the following points, and put an
x
in 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!