1 | <?php |
||
5 | class TeamController extends \BaseController { |
||
|
|||
6 | |||
7 | private $team; |
||
8 | |||
9 | public function __construct(TeamRepo $team) |
||
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 | * Display a listing of the teams by year . |
||
47 | * |
||
48 | * @return Response |
||
49 | */ |
||
50 | public function findByYear($year) |
||
54 | |||
55 | /** |
||
56 | * Display the specified resource. |
||
57 | * |
||
58 | * @param int $id |
||
59 | * @return Response |
||
60 | */ |
||
61 | public function show($id) |
||
65 | |||
66 | |||
67 | /** |
||
68 | * Show the form for editing the specified resource. |
||
69 | * |
||
70 | * @param int $id |
||
71 | * @return Response |
||
72 | */ |
||
73 | public function edit($id) |
||
77 | |||
78 | |||
79 | /** |
||
80 | * Update the specified resource in storage. |
||
81 | * |
||
82 | * @param int $id |
||
83 | * @return Response |
||
84 | */ |
||
85 | public function update($id) |
||
89 | |||
90 | |||
91 | /** |
||
92 | * Remove the specified resource from storage. |
||
93 | * |
||
94 | * @param int $id |
||
95 | * @return Response |
||
96 | */ |
||
97 | public function destroy($id) |
||
101 | |||
102 | |||
103 | } |
||
104 |
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.