| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function store(): BlogComment |
||
| 37 | { |
||
| 38 | $comment = BlogComment::create($this->only([ |
||
| 39 | 'blog_article_id', |
||
| 40 | 'content' |
||
| 41 | ])); |
||
| 42 | |||
| 43 | $parser = new MentionParser($comment); |
||
|
|
|||
| 44 | $content = $parser->parse($this->content); |
||
| 45 | $comment->content = $content; |
||
| 46 | $comment->save(); |
||
| 47 | |||
| 48 | return $comment; |
||
| 49 | } |
||
| 51 |