1. Go to this page and download the library: Download sonnn/laravel-slack-bot library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
protected function schedule(Schedule $schedule)
{
$schedule->command('slack:stats')->daily()
}
use Sonnn\SlackOutput\Facade\SlackOutput;
...
public function report(Exception $e)
{
if ($this->shouldReport($e)) {
SlackOutput::exception($e);
}
parent::report($e);
}
use Sonnn\SlackOutput\Facade\SlackOutput;
...
public function boot()
{
Queue::failing(function (JobFailed $job) {
SlackOutput::jobFailed($job);
});
}
use Sonnn\SlackOutput\Facade\SlackOutput;
...
protected function schedule(Schedule $schedule)
{
SlackOutput::scheduledCommand(
$schedule->command('db:backup-auto')->daily()
);
}
sh
php artisan vendor:publish --provider="Sonnn\SlackOutput\ServiceProvider"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.