Skip to content

Conversation

@rodrigopedra
Copy link
Contributor

Closes laravel/framework#57078

Laravel 12.29.0 added a dependency on phiki/phiki, which has a discoverable service provider to auto-register a Blade's component namespace.

In apps that opt out of loading Laravel's ViewServiceProvider, the blade.compiler binding proxied by the Blade façade is not available, which causes an error.

Console-only applications can opt out of some providers to reduce size when deployed as PHAR archives.

This PR

  • Adds a guard around the Blade's component namespace registration to ensure the blade.compiler is bound to the container.

… namespace

Closes laravel/framework#57078

Laravel 12.29.0 added a dependency on `phiki/phiki`, which has a discoverable service provider to auto-register a Blade's component namespace.

In apps that opt out of loading Laravel's `ViewServiceProvider`, the `blade.compiler` binding proxied by the `Blade` façade is not available, which causes an error.

Console-only applications can opt out of some providers to reduce size when deployed as PHAR archives.

**This PR**

- Adds a guard around the Blade's component namespace registration to ensure the `blade.compiler` is bound to the container.
Use Facade::resolved() helper

Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
@ryangjchandler
Copy link
Collaborator

Thank you, will get this merged & tagged.

@ryangjchandler ryangjchandler merged commit 6d73510 into phikiphp:2.x Sep 17, 2025
4 checks passed
@rodrigopedra rodrigopedra deleted the patch-1 branch September 17, 2025 19:45
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.

Target class [blade.compiler] does not exist

3 participants