| 1 | <?php |
||
| 5 | class TeamController extends \BaseController { |
||
|
|
|||
| 6 | |||
| 7 | public function __construct(TeamRepo $team) |
||
| 11 | /** |
||
| 12 | * Display a listing of the resource. |
||
| 13 | * |
||
| 14 | * @return Response |
||
| 15 | */ |
||
| 16 | public function index() |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * Show the form for creating a new resource. |
||
| 24 | * |
||
| 25 | * @return Response |
||
| 26 | */ |
||
| 27 | public function create() |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Store a newly created resource in storage. |
||
| 35 | * |
||
| 36 | * @return Response |
||
| 37 | */ |
||
| 38 | public function store() |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * Display the specified resource. |
||
| 46 | * |
||
| 47 | * @param int $id |
||
| 48 | * @return Response |
||
| 49 | */ |
||
| 50 | public function show($id) |
||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * Show the form for editing the specified resource. |
||
| 58 | * |
||
| 59 | * @param int $id |
||
| 60 | * @return Response |
||
| 61 | */ |
||
| 62 | public function edit($id) |
||
| 66 | |||
| 67 | |||
| 68 | /** |
||
| 69 | * Update the specified resource in storage. |
||
| 70 | * |
||
| 71 | * @param int $id |
||
| 72 | * @return Response |
||
| 73 | */ |
||
| 74 | public function update($id) |
||
| 78 | |||
| 79 | |||
| 80 | /** |
||
| 81 | * Remove the specified resource from storage. |
||
| 82 | * |
||
| 83 | * @param int $id |
||
| 84 | * @return Response |
||
| 85 | */ |
||
| 86 | public function destroy($id) |
||
| 90 | |||
| 91 | |||
| 92 | } |
||
| 93 |
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.