1 | <?php |
||
6 | class LiveLeaderboardController extends \BaseController { |
||
|
|||
7 | |||
8 | public function __construct(LeaderboardService $leaderboard) |
||
12 | |||
13 | /** |
||
14 | * Display a listing of the resource. |
||
15 | * |
||
16 | * @return Response |
||
17 | */ |
||
18 | public function index() |
||
22 | |||
23 | |||
24 | /** |
||
25 | * Show the form for creating a new resource. |
||
26 | * |
||
27 | * @return Response |
||
28 | */ |
||
29 | public function create() |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Store a newly created resource in storage. |
||
37 | * |
||
38 | * @return Response |
||
39 | */ |
||
40 | public function store() |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Display the specified resource. |
||
48 | * |
||
49 | * @param int $id |
||
50 | * @return Response |
||
51 | */ |
||
52 | public function show($id) |
||
62 | |||
63 | |||
64 | /** |
||
65 | * Show the form for editing the specified resource. |
||
66 | * |
||
67 | * @param int $id |
||
68 | * @return Response |
||
69 | */ |
||
70 | public function edit($id) |
||
74 | |||
75 | |||
76 | /** |
||
77 | * Update the specified resource in storage. |
||
78 | * |
||
79 | * @param int $id |
||
80 | * @return Response |
||
81 | */ |
||
82 | public function update($id) |
||
86 | |||
87 | |||
88 | /** |
||
89 | * Remove the specified resource from storage. |
||
90 | * |
||
91 | * @param int $id |
||
92 | * @return Response |
||
93 | */ |
||
94 | public function destroy($id) |
||
98 | |||
99 | |||
100 | } |
||
101 |
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.