We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d30bb commit 7fa064dCopy full SHA for 7fa064d
app/Http/Requests/CreateReplyRequest.php
@@ -34,11 +34,11 @@ public function replyAble(): ReplyAble
34
35
private function findReplyAble(int $id, string $type): ReplyAble
36
{
37
- return match ($type) {
+ $result = match ($type) {
38
Thread::TABLE => Thread::find($id),
39
};
40
41
- abort(404);
+ return $result ?? abort(404);
42
}
43
44
public function author(): User
0 commit comments