Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes errant reference to Health facade - should be Check facade - when creating macros for health checks #262

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

Mrkbingham
Copy link
Contributor

@Mrkbingham Mrkbingham commented Feb 22, 2025

Clarifies the macro should be defined using the Check facade

Per the original PR that added this feature, the examples given and code updated all appear to be targeting the Check class: #184

That Check class contains the Macroable trait - and the Health class does not appear to - using the Health class throws an error:
Call to undefined method Spatie\Health\Health::macro()

If there's any context I'm missing, happy to update this doc with more context on how to get these macros working properly.

Clarifies the macro should be defined in the Check facade
@freekmurze freekmurze merged commit 3ffc46f into spatie:main Feb 22, 2025
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.

2 participants