• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RonasIT / laravel-chat / 22615740802

03 Mar 2026 09:01AM UTC coverage: 98.78% (-0.9%) from 99.645%
22615740802

push

github

web-flow
Merge pull request #49 from RonasIT/86c86krgq_Extend-chat-to-work-with-multi-member-chats-1

feat: ability to send message to group chat

61 of 63 new or added lines in 12 files covered. (96.83%)

243 of 246 relevant lines covered (98.78%)

23.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/Http/Requests/Conversations/BaseConversationRequest.php
1
<?php
2

3
namespace RonasIT\Chat\Http\Requests\Conversations;
4

5
use RonasIT\Support\Http\BaseRequest;
6
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
7
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
8

9
class BaseConversationRequest extends BaseRequest
10
{
11
    protected function checkConversationMembership(): void
12
    {
13
        if (!$this->conversation->hasMember($this->user())) {
14✔
14
            throw new AccessDeniedHttpException(__('chat::validation.exceptions.not_conversation_member'));
2✔
15
        }
16
    }
17

18
    protected function checkConversationCreatorship(): void
19
    {
NEW
20
        if (!$this->conversation->isCreator($this->user())) {
×
NEW
21
            throw new AccessDeniedHttpException(__('chat::validation.exceptions.not_creator'));
×
22
        }
23
    }
24

25
    protected function checkConversationExists(): void
26
    {
27
        if (empty($this->conversation)) {
31✔
28
            throw new NotFoundHttpException(__('chat::validation.exceptions.not_found', ['entity' => 'Conversation']));
6✔
29
        }
30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc