tylercd100 / lern

LERN is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.
MIT License
441 stars 37 forks source link

Compatibility with Laravel 5.7.x #67

Closed bolence closed 6 years ago

bolence commented 6 years ago

Hi, when can we should expect new release compatible with latest Laravel version? Thanks

tylercd100 commented 6 years ago

Hi @bolence does it not currently work with 5.7?

bolence commented 6 years ago

Nope. I have tried with 5.7.11 version and I am getting error on composer update...

tylercd100 commented 6 years ago

What is the error?

bolence commented 6 years ago

Your requirements could not be resolved to an installable set of packages.

tylercd100 commented 6 years ago

what does your composer.json file look like? Are you installing tylercd100/laravel-notify separately?

bolence commented 6 years ago

Looks normal, I just did it composer require tylercd100/lern this. Nope. laravel-notify is not separately.

tylercd100 commented 6 years ago

K, I'll give it a look. One second

bolence commented 6 years ago

Ok, thanks.

tylercd100 commented 6 years ago

Hey Bolence, I just installed lern on a fresh install of laravel 5.7 with no errors. There must be something holding back tylercd100/laravel-notify from being updated to version >2.0.0

Would you mind posting your dependencies from your composer.json?

$ composer require tylercd100/lern
Using version ^4.5 for tylercd100/lern
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 76 installs, 0 updates, 0 removals
  - Installing vlucas/phpdotenv (v2.5.1): Loading from cache
  - Installing symfony/css-selector (v4.1.6): Downloading (100%)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
  - Installing symfony/polyfill-php72 (v1.9.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.9.0): Loading from cache
  - Installing symfony/var-dumper (v4.1.6): Downloading (100%)
  - Installing symfony/routing (v4.1.6): Downloading (100%)
  - Installing symfony/process (v4.1.6): Loading from cache
  - Installing symfony/polyfill-ctype (v1.9.0): Loading from cache
  - Installing symfony/http-foundation (v4.1.6): Downloading (100%)
  - Installing symfony/event-dispatcher (v4.1.6): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v4.1.6): Downloading (100%)
  - Installing symfony/http-kernel (v4.1.6): Downloading (100%)
  - Installing symfony/finder (v4.1.6): Downloading (100%)
  - Installing symfony/console (v4.1.6): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing egulias/email-validator (2.1.6): Loading from cache
  - Installing swiftmailer/swiftmailer (v6.1.3): Loading from cache
  - Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  - Installing ramsey/uuid (3.8.0): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing opis/closure (3.1.1): Downloading (100%)
  - Installing symfony/translation (v4.1.6): Loading from cache
  - Installing nesbot/carbon (1.34.0): Loading from cache
  - Installing monolog/monolog (1.23.0): Loading from cache
  - Installing league/flysystem (1.0.48): Downloading (100%)
  - Installing erusev/parsedown (1.7.1): Loading from cache
  - Installing dragonmantank/cron-expression (v2.2.0): Loading from cache
  - Installing doctrine/inflector (v1.3.0): Loading from cache
  - Installing laravel/framework (v5.7.11): Downloading (100%)
  - Installing fideloper/proxy (4.0.0): Loading from cache
  - Installing nikic/php-parser (v4.1.0): Downloading (100%)
  - Installing jakub-onderka/php-console-color (v0.2): Downloading (connecting..                                 Downloading (100%)
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cach                                 e
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing psy/psysh (v0.9.9): Downloading (100%)
  - Installing laravel/tinker (v1.0.8): Downloading (100%)
  - Installing tylercd100/monolog-sms (1.3.0): Loading from cache
  - Installing tylercd100/monolog-mailgun (2.0.0): Loading from cache
  - Installing tylercd100/laravel-notify (2.1.0): Loading from cache
  - Installing tylercd100/lern (4.5.1): Loading from cache
  - Installing beyondcode/laravel-dump-server (1.2.2): Downloading (connecting..                                 Downloading (100%)
  - Installing fzaninotto/faker (v1.8.0): Loading from cache
  - Installing hamcrest/hamcrest-php (v2.0.0): Loading from cache
  - Installing mockery/mockery (1.2.0): Downloading (100%)
  - Installing filp/whoops (2.3.1): Downloading (100%)
  - Installing nunomaduro/collision (v2.1.0): Downloading (100%)
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/resource-operations (2.0.1): Downloading (connecting...                                 Downloading (100%)
  - Installing sebastian/recursion-context (3.0.0): Loading from cache
  - Installing sebastian/object-reflector (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (3.0.3): Loading from cache
  - Installing sebastian/global-state (2.0.0): Loading from cache
  - Installing sebastian/exporter (3.1.0): Loading from cache
  - Installing sebastian/environment (3.1.0): Loading from cache
  - Installing sebastian/diff (3.0.1): Downloading (100%)
  - Installing sebastian/comparator (3.0.2): Downloading (100%)
  - Installing phpunit/php-timer (2.0.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (2.0.2): Downloading (100%)
  - Installing theseer/tokenizer (1.1.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-token-stream (3.0.0): Loading from cache
  - Installing phpunit/php-code-coverage (6.1.3): Downloading (100%)
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing phpspec/prophecy (1.8.0): Loading from cache
  - Installing phar-io/version (2.0.1): Downloading (100%)
  - Installing phar-io/manifest (1.0.3): Downloading (100%)
  - Installing myclabs/deep-copy (1.8.1): Loading from cache
  - Installing phpunit/phpunit (7.4.3): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: tylercd100/lern
Package manifest generated successfully.
bolence commented 6 years ago

Ok, thank you very much. I will check it my Composer. Maybe it is a problem because it is not freshly installation. One more question, is it possible to have more than one notification stack? For example, I want to save exception in dB and also I want to send notification on email and slack channel? Thanks. FYI., I think that your package is a best package for exception handling. I am using it in all my projects. Keep good work.

tylercd100 commented 6 years ago

@bolence Yes that is possible, just change the 'drivers' option in the config.

/**
 * mail, pushover, slack, etc...
 */
'drivers'=>['mail', 'slack'],
tylercd100 commented 6 years ago

Please reopen if you are still having issues

mahony0 commented 4 years ago

I got same error as well. This because lern has "illuminate/support": "^6.0" in composer and laravel 7 has illuminate/support 7.x

Here is the error details:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tylercd100/lern 5.0.0 requires tylercd100/laravel-notify ^3.0 -> satisfiable by tylercd100/laravel-notify[3.0.0].
    - Installation request for tylercd100/lern ^5.0 -> satisfiable by tylercd100/lern[5.0.0].
    - Conclusion: remove laravel/framework v7.9.2
    - Conclusion: don't install laravel/framework v7.9.2
    - tylercd100/laravel-notify 3.0.0 requires illuminate/support ^6.0 -> satisfiable by illuminate/support[6.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.10.0, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.18.1, v6.18.10, v6.18.11, v6.18.2, v6.18.3, v6.18.4, v6.18.5, v6.18.6, v6.18.7, v6.18.8, v6.18.9, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0].
    - don't install illuminate/support 6.x-dev|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.0.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.0.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.0.2|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.0.3|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.0.4|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.1.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.10.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.11.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.12.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.13.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.13.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.14.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.15.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.15.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.16.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.17.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.17.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.10|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.11|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.2|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.3|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.4|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.5|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.6|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.7|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.8|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.18.9|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.2.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.3.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.4.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.5.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.5.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.5.2|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.6.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.6.1|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.6.2|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.7.0|don't install laravel/framework v7.9.2
    - don't install illuminate/support v6.8.0|don't install laravel/framework v7.9.2
    - Installation request for laravel/framework (locked at v7.9.2, required as ^7.0) -> satisfiable by laravel/framework[v7.9.2].

Installation failed, reverting ./composer.json to its original content.