| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function index(Request $request) |
||
| 25 | { |
||
| 26 | $conversations = Chat::conversation(Chat::conversations()->conversation) |
||
| 27 | ->for(auth()->user()) |
||
| 28 | ->get() |
||
| 29 | ->toArray()['data']; |
||
| 30 | $conversations = array_pluck($conversations, 'id'); |
||
| 31 | return view('home', compact('conversations')); |
||
| 32 | } |
||
| 33 | |||
| 49 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.