1 | <?php |
||
5 | class TournamentController extends \BaseController { |
||
|
|||
6 | |||
7 | public function __construct(TournamentService $tournament) |
||
11 | |||
12 | /** |
||
13 | * Display a listing of the resource. |
||
14 | * |
||
15 | * @return Response |
||
16 | */ |
||
17 | public function index() |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Show the form for creating a new resource. |
||
25 | * |
||
26 | * @return Response |
||
27 | */ |
||
28 | public function create() |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Store a newly created resource in storage. |
||
36 | * |
||
37 | * @return Response |
||
38 | */ |
||
39 | 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) |
||
56 | |||
57 | |||
58 | /** |
||
59 | * Show the form for editing the specified resource. |
||
60 | * |
||
61 | * @param int $id |
||
62 | * @return Response |
||
63 | */ |
||
64 | public function edit($id) |
||
68 | |||
69 | |||
70 | /** |
||
71 | * Update the specified resource in storage. |
||
72 | * |
||
73 | * @param int $id |
||
74 | * @return Response |
||
75 | */ |
||
76 | public function update($id) |
||
80 | |||
81 | |||
82 | /** |
||
83 | * Remove the specified resource from storage. |
||
84 | * |
||
85 | * @param int $id |
||
86 | * @return Response |
||
87 | */ |
||
88 | public function destroy($id) |
||
92 | |||
93 | |||
94 | } |
||
95 |
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.