Closed Tom-Pearce closed 2 years ago
You are using an old version of this package. Upgrading to ^2.10
should fix it š
Well that was an easy one, thank you very much. Not entirely sure why it would have gone for 1.9 if it's old in that case.
Not a 100% either... although maybe because of your PHP version now I'm looking closer... v2 is 7.2+. You can still use 1.9 just fine but it requires some different setup instructions for publishing the config file (which you can also do manually).
If you can upgrade PHP I would strongly urge you to do that but I know this is not always the easy part š
I got error messages for the PHP version which I updated and then all went through fine and received a test error on the dashboard. Will get some more thorough tests done to make sure the PHP version doesn't impact anything else, but all seems to be good initially for this project!
Thanks for the quick response, certainly appreciated!
No worries, please let us know if you run into other troubles.
For now I'll close this issue since I think you got it working now :)
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
PHP: 7.1 Laravel: 5.5 sentry-laravel: ^1.9
Steps to Reproduce
COMPOSER_MEMORY_LIMIT=-1 composer require sentry/sentry-laravel
captureException()
snippet toHandler.php
php artisan sentry:publish --dsn=https://557f106825494827b3c6c48d80f901a8@o1092886.ingest.sentry.io/6134627
Expected Result
Expected
config/sentry.php
to be created andDSN
to be added to.env
file, as per documentationActual Result
Got the error
Command "sentry:publish" is not defined.
What I've tried so far
php artisan config:cache
config/app.php
and re-runningsentry:publish
sentry/sentry-laravel
definitely gets discovered:composer.json
Any suggestions would be appreciated.
Cheers, Tom