Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function show($makerid, $orderby = 'title', $direction = 'asc') |
||
28 | { |
||
29 | $games = Game::where('maker_id', '=', $makerid) |
||
30 | ->orderBy($orderby, $direction) |
||
31 | ->paginate(20); |
||
32 | |||
33 | $maker = Maker::whereId($makerid)->first(); |
||
34 | |||
35 | return view('maker.show', [ |
||
36 | 'games' => $games, |
||
37 | 'maker' => $maker, |
||
38 | 'orderby' => $orderby, |
||
39 | 'direction' => $direction, |
||
40 | 'id' => $makerid, |
||
41 | ]); |
||
42 | } |
||
43 | } |
||
44 |