You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace App\Providers;
use Enigma\GoogleChatHandler;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
class GoogleChatServiceProvider extends ServiceProvider
{
/**
* Register Papertrail Service Provider
*
* @return void
*/
public function register()
{
$monolog = Log::getLogger();
$gch = new GoogleChatHandler();
$gch->setLevel(config('logging.channels.google-chat.level'));
$monolog->pushHandler($gch);
}
}
And add it to config\app.php to get it to work (adding App\Providers\GoogleChatServiceProvider::class, in the 'providers' section).
Did I miss something in your setup description from the Readme? Perhaps you could add this to your setup description?
I'm using Laravel 9.
The text was updated successfully, but these errors were encountered:
I had to create a ServiceProvider
And add it to
config\app.php
to get it to work (addingApp\Providers\GoogleChatServiceProvider::class,
in the'providers'
section).Did I miss something in your setup description from the Readme? Perhaps you could add this to your setup description?
I'm using Laravel 9.
The text was updated successfully, but these errors were encountered: