Skip to content

[6.x] Fix please not finding app commands on Laravel 13.36+ - #15809

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15808-please-kernel-commands
Nov 9, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15808-please-kernel-commands

Conversation

@lazerg

@lazerg lazerg commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request fixes an issue where php please couldn't find commands from app/Console/Commands or routes/console.php on Laravel 13.36 and newer, while php artisan still ran them.

Since laravel/framework#61931, the console kernel's load() and command() put commands in a new $kernelCommands property instead of registering them through Artisan::starting(), and the base getArtisan() resolves both lists. Our Please\Kernel::getArtisan() override only resolved $this->commands, so those commands were never added.

This PR fixes it by resolving $kernelCommands as well. The ?? [] keeps it working on older Laravel versions where the property doesn't exist.

Fixes #15808

@jasonvarga
jasonvarga merged commit 58a6a39 into statamic:6.x Nov 9, 2026
62 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.

please cannot run app commands from app/Console/Commands on Laravel 13.36+

2 participants