Skip to content

Laravel 13 - #60

Open
fish3046 wants to merge 5 commits into
ytake:mainfrom
fish3046:laravel13
Open

Laravel 13#60
fish3046 wants to merge 5 commits into
ytake:mainfrom
fish3046:laravel13

Conversation

@fish3046

@fish3046 fish3046 commented Apr 7, 2026

Copy link
Copy Markdown

Flags the library as usable in Laravel 13. No change to Laravel logging was made, and the library works as is.

Additional changes:

  1. Updated github workflow to test on PHP 8.5
  2. Use orchestra/testbench for Laravel feature integration testing.

I switched from manually bootstrapping a Laravel container to using testbench. There was a change to ContextServiceProvider that broke the test because it now expects other methods to exist in the manually created container. Changes within the framework will continue to cause problems like this. testbench removes these headaches by taking care of creating a Laravel app designed for testing.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the library to support Laravel 12 and 13, refactors the test suite to use orchestra/testbench, and updates the documentation. Feedback was provided regarding an inconsistency between the README and composer.json version constraints for Laravel 11, as well as a recommendation to use a bounded version range for PHPUnit to prevent potential breaking changes from future major releases.

Comment thread composer.json
Comment on lines +22 to +27
"illuminate/log": "^11.0 | ^12.0 | ^13.0",
"illuminate/support": "^11.0 | ^12.0 | ^13.0",
"illuminate/config": "^11.0 | ^12.0 | ^13.0",
"illuminate/contracts": "^11.0 | ^12.0 | ^13.0",
"illuminate/container": "^11.0 | ^12.0 | ^13.0",
"illuminate/events": "^11.0 | ^12.0 | ^13.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an inconsistency between the composer.json requirements and the README.md versioning table. The README.md indicates that version ^8 of this library is intended for Laravel >= v12, while Laravel v11 should stay on version ^7. However, composer.json still includes ^11.0 in the requirements for illuminate packages. To maintain consistency and prevent Laravel 11 users from accidentally upgrading to version 8 (which may contain environment requirements or testing changes intended for newer Laravel versions), consider removing the ^11.0 constraint.

Suggested change
"illuminate/log": "^11.0 | ^12.0 | ^13.0",
"illuminate/support": "^11.0 | ^12.0 | ^13.0",
"illuminate/config": "^11.0 | ^12.0 | ^13.0",
"illuminate/contracts": "^11.0 | ^12.0 | ^13.0",
"illuminate/container": "^11.0 | ^12.0 | ^13.0",
"illuminate/events": "^11.0 | ^12.0 | ^13.0",
"illuminate/log": "^12.0 | ^13.0",
"illuminate/support": "^12.0 | ^13.0",
"illuminate/config": "^12.0 | ^13.0",
"illuminate/contracts": "^12.0 | ^13.0",
"illuminate/container": "^12.0 | ^13.0",
"illuminate/events": "^12.0 | ^13.0",

Comment thread composer.json
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": ">=10.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using an unbounded upper constraint like >=10.0 for phpunit/phpunit is generally discouraged for libraries. It may allow future major versions of PHPUnit with breaking changes to be installed, which could break your test suite or CI unexpectedly. It is safer to use a defined range that includes the versions you have verified (e.g., ^10.0 || ^11.0).

Suggested change
"phpunit/phpunit": ">=10.0",
"phpunit/phpunit": "^10.0 || ^11.0",

@fish3046

Copy link
Copy Markdown
Author

Due to fluent/fluent-logger-php#71 this library doesn't work in PHP 8.4. The package is currently unmaintained.

@fish3046

Copy link
Copy Markdown
Author

I've updated to use a fork of fluent/logger that has updated to work properly on PHP 8.4+. https://github.com/dealnews/fluent-logger-php

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