| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function store(StoreRequest $request) |
||
| 18 | { |
||
| 19 | Log::info('Comment created by '.backpack_user()->firstname); |
||
|
|
|||
| 20 | |||
| 21 | return Comment::create([ |
||
| 22 | 'commentable_id' => $request->input('commentable_id'), |
||
| 23 | 'commentable_type' => $request->input('commentable_type'), |
||
| 24 | 'action' => $request->input('action') ?? 0, |
||
| 25 | 'body' => $request->input('body'), |
||
| 26 | 'author_id' => backpack_user()->id, |
||
| 27 | ]); |
||
| 42 |