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

Laravel integration #54

Open
tmdevde opened this issue Feb 27, 2022 · 4 comments
Open

Laravel integration #54

tmdevde opened this issue Feb 27, 2022 · 4 comments

Comments

@tmdevde
Copy link

tmdevde commented Feb 27, 2022

Hi,

tried to use it with Laravel. Installed via Composer and added the readme code to the report function if the exception handler but

Uncaught Error: Class "Hawk\Catcher" not found in

Implemented like this:

namespace App\Exceptions;

use Hawk\Catcher;
  
public function report(Throwable $exception)
{
    Catcher::init([
        'integrationToken' => '***'
    ]);

    Catcher::get()->sendException($exception);

    parent::report($exception);
}

What am i doing wrong?

@dentelis
Copy link

dentelis commented Mar 2, 2022

This doc is totally outdated, look as the source code - there is no class Hawk\Catcher.
Also they try to send data to url "https://hawk.so/catcher/php", which is 404.
Looks like this project is not alive.

@khaydarov
Copy link
Member

khaydarov commented Mar 7, 2022

@tmdevde Hi!
Which version you use?

@tmdevde
Copy link
Author

tmdevde commented Sep 2, 2022

2.1.9

@BestDaddy
Copy link

use \Hawk\HawkCatcher::instance('abcd1234-1234-abcd-1234-123456abcdef');
not \Hawk\Catcher::init([
'integrationToken' => 'your integration token'
]);

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

4 participants