New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

maras0830/laravel-logslack

Send logs to slack channel.
4,478 2
Install
composer require maras0830/laravel-logslack
Latest Version:v1.0.11
PHP:>=5.4.0
Laravel:5 – 9
Last Updated:Jun 9, 2022
Links: GitHub  ·  Packagist
Maintainer: Maras0830

Laravel Log to Slack Channel

via incoming callback - https://api.slack.com/incoming-webhooks

2018-09-03 5 22 26

Installation

$ composer require maras0830/laravel-LogSlack

in config/app.php

    'providers' => [
    	...
        Maras0830\LogSlack\Providers\LogSlackBotServiceProvider::class,
    ];		

.env

SLACK_LOG_LEVEL=success,warning,error
SLACK_LOG_CALLBACK_URL=<slack_incoming_callback_url>

if your laravel version >= 5.8, install laravel/slack-notification-channel

$ composer require laravel/slack-notification-channel

Example

in route/web.php


Route::get('slack', function() {

    Log::debug('Slack Log ', ['Slack' => 'Hello']);
});

call http://localhost/slack

2018-09-03 5 23 16

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v1.0.11 >=5.4.0 ~5.0|~6.0|~7.0|^8.0|^9.0|^9.1
v1.0.10 >=5.4.0 ~5.0|~6.0|~7.0|^8.0|^9.0|^9.1
v1.0.9 >=5.4.0 ~5.0|~6.0|~7.0|^8.0
v1.0.8 >=5.4.0 ~5.0|~6.0|~7.0|^8.0
v1.0.7 >=5.4.0 ^5.1.0