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

Attribute [webhooks] does not exist. #179

Closed
SH1R3F opened this issue Jan 25, 2023 · 5 comments
Closed

Attribute [webhooks] does not exist. #179

SH1R3F opened this issue Jan 25, 2023 · 5 comments

Comments

@SH1R3F
Copy link

SH1R3F commented Jan 25, 2023

I'm trying to build a package uses this package to manage webhook responses..
I followed the setup in the readme file and everything works fine in local but when switching to console and start writing tests everything fails with this exception Attribute [webhooks] does not exist.

I reproduced the error by building a new empty package that only has the service provider, routes, testing suite and "spatie/laravel-webhook-client": "^3.1".. it fails on first test with same error.

you can find the reproduction package on this repo "https://github.com/SH1R3F/webhook-client-reproduction-test"

@dreammonkey
Copy link

dreammonkey commented Feb 5, 2023

Maybe you forgot to run the optimize script, I know I did ;)

# Clear the old boostrap/cache/compiled.php
php artisan clear-compiled

# Recreate boostrap/cache/compiled.php
php artisan optimize

@SH1R3F
Copy link
Author

SH1R3F commented Feb 7, 2023

@dreammonkey This poblem happens in scenario of developing a package which doesn't have artisan commands... Also I reproduced the error with an empty new package so I don't think it has something to do with cache!

@zgetro
Copy link

zgetro commented Feb 10, 2023

@SH1R3F do composer update it will work.

@harshuchilzy
Copy link

composer update
This happens mostly when the package is not installed correctly. Try to reinstall

@freekmurze
Copy link
Member

Closing this as the issue is probably not caused by our code.

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

No branches or pull requests

5 participants