Senior
August 19, 2026

Spot the bug: Laravel

One snippet. Find the bug, or prove there isn't one.

php
1<?php
2
3namespace App\Services;
4
5use Illuminate\Support\Facades\Http;
6
7class SlackNotifier
8{
9    public function send(string $message): void
10    {
11        $webhook = env('SLACK_WEBHOOK_URL');
12
13        Http::timeout(5)->post($webhook, [
14            'text' => $message,
15        ]);
16    }
17}
18

Click the lines that carry the problem.

Your verdict

One attempt per day. The answer shows up right after.

Keep your streak

Create an account to keep your streak and track your progress.

Create an account