Sentry-laravel: Laravel 8 support

Created on 26 Aug 2020  路  2Comments  路  Source: getsentry/sentry-laravel

Laravel 8 support for the Sentry Laravel integration will be released on the day (currently planned for 8 september 2020) that Laravel 8 is released.

No need to create PR's or issues for this, it is on the radar and we will make sure Laravel 8 support will be there on release day 馃挭


Since Laravel 8 requires Guzzle 7 see the comment below with instructions for Laravel 8 / Guzzle 7.

enhancement support

Most helpful comment

No longer any special changes needed to install Sentry Laravel with Guzzle 7: https://github.com/getsentry/sentry-laravel/issues/371#issuecomment-691964839.


Unfortunately Laravel 8 requires Guzzle 7 which the PHP SDK is not yet ready for.

You will need to modify your composer.json to include these requirements and replacements for now:

{
    "require": {
        "sentry/sentry-laravel": "^1.9",
        "php-http/curl-client": "^2.0"
    },
    "replace": {
        "php-http/guzzle6-adapter": "*"
    },
}

_These changes will also be needed when you want to use Guzzle 7 without Laravel 8_.


By replacing the php-http/guzzle6-adapter which is only compatible with Guzzle 6 as you might have guessed we tell composer essentially to not install that package. We install php-http/curl-client as an alternative so that we do have a HTTP client installed the Sentry SDK can use.


For our progress on Guzzle 7 support: https://github.com/getsentry/sentry-php/issues/1059.~~

All 2 comments

No longer any special changes needed to install Sentry Laravel with Guzzle 7: https://github.com/getsentry/sentry-laravel/issues/371#issuecomment-691964839.


Unfortunately Laravel 8 requires Guzzle 7 which the PHP SDK is not yet ready for.

You will need to modify your composer.json to include these requirements and replacements for now:

{
    "require": {
        "sentry/sentry-laravel": "^1.9",
        "php-http/curl-client": "^2.0"
    },
    "replace": {
        "php-http/guzzle6-adapter": "*"
    },
}

_These changes will also be needed when you want to use Guzzle 7 without Laravel 8_.


By replacing the php-http/guzzle6-adapter which is only compatible with Guzzle 6 as you might have guessed we tell composer essentially to not install that package. We install php-http/curl-client as an alternative so that we do have a HTTP client installed the Sentry SDK can use.


For our progress on Guzzle 7 support: https://github.com/getsentry/sentry-php/issues/1059.~~

@everyone (that doesn't work here unfortunately so I hope everyone subscribed)

We've just released an update to our underlying sentry/sdk package to no longer depend on Guzzle (any version). So the Sentry PHP SDK and also Sentry Laravel can be installed alongside Guzzle 6 or 7 without issues now.

The long and the short is: you can remove changes made to your composer.json and you should only have to require "sentry/sentry-laravel": "^1.9" to use Sentry in Laravel 馃コ

Was this page helpful?
0 / 5 - 0 ratings

Related issues

straube picture straube  路  5Comments

jstolp picture jstolp  路  4Comments

masoudjahromi picture masoudjahromi  路  4Comments

acidjazz picture acidjazz  路  4Comments

errogaht picture errogaht  路  8Comments