| 1 | <?php |
||
| 5 | class LeaderboardController extends \BaseController { |
||
|
|
|||
| 6 | |||
| 7 | public function __construct(LeaderboardRepository $leaderboardRepo) |
||
| 11 | /** |
||
| 12 | * Display a listing of the resource. |
||
| 13 | * |
||
| 14 | * @return Response |
||
| 15 | */ |
||
| 16 | public function index() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Display the specified resource. |
||
| 23 | * |
||
| 24 | * @param int $id |
||
| 25 | * @return Response |
||
| 26 | */ |
||
| 27 | public function show($year) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Show the form for editing the specified resource. |
||
| 38 | * |
||
| 39 | * @param int $id |
||
| 40 | * @return Response |
||
| 41 | */ |
||
| 42 | public function edit($id) |
||
| 46 | |||
| 47 | |||
| 48 | /** |
||
| 49 | * Update the specified resource in storage. |
||
| 50 | * |
||
| 51 | * @param int $id |
||
| 52 | * @return Response |
||
| 53 | */ |
||
| 54 | public function update($id) |
||
| 58 | |||
| 59 | |||
| 60 | /** |
||
| 61 | * Remove the specified resource from storage. |
||
| 62 | * |
||
| 63 | * @param int $id |
||
| 64 | * @return Response |
||
| 65 | */ |
||
| 66 | public function destroy($id) |
||
| 70 | |||
| 71 | |||
| 72 | } |
||
| 73 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.