| 1 | <?php |
||
| 3 | class HolesController extends \BaseController { |
||
|
|
|||
| 4 | |||
| 5 | public function __construct(Course $course, Hole $hole) |
||
| 10 | /** |
||
| 11 | * Display a listing of the resource. |
||
| 12 | * |
||
| 13 | * @return Response |
||
| 14 | */ |
||
| 15 | public function index() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Show the form for creating a new resource. |
||
| 23 | * |
||
| 24 | * @return Response |
||
| 25 | */ |
||
| 26 | public function create() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Store a newly created resource in storage. |
||
| 33 | * |
||
| 34 | * @return Response |
||
| 35 | */ |
||
| 36 | public function store() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Display the specified resource. |
||
| 43 | * |
||
| 44 | * @param int $course_id |
||
| 45 | * @return Response |
||
| 46 | */ |
||
| 47 | public function show() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Show the form for editing the specified resource. |
||
| 56 | * |
||
| 57 | * @param int $id |
||
| 58 | * @return Response |
||
| 59 | */ |
||
| 60 | public function edit($id) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Update the specified resource in storage. |
||
| 67 | * |
||
| 68 | * @param int $id |
||
| 69 | * @return Response |
||
| 70 | */ |
||
| 71 | public function update($id) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Remove the specified resource from storage. |
||
| 78 | * |
||
| 79 | * @param int $id |
||
| 80 | * @return Response |
||
| 81 | */ |
||
| 82 | public function destroy($id) |
||
| 86 | |||
| 87 | } |
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.