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