| 1 | <?php |
||
| 10 | class DeviceController extends Controller |
||
| 11 | { |
||
| 12 | use Helpers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor |
||
| 16 | */ |
||
| 17 | public function __construct(Request $request) { |
||
|
1 ignored issue
–
show
|
|||
| 18 | $this->middleware('auth'); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Display a listing of the resource. |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
| 25 | */ |
||
| 26 | public function index(DeviceDataTable $dataTable) |
||
| 27 | { |
||
| 28 | return $dataTable->render('devices.list'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Show the form for creating a new resource. |
||
| 33 | * |
||
| 34 | * @return \Illuminate\Http\Response |
||
| 35 | */ |
||
| 36 | public function create() |
||
| 37 | { |
||
| 38 | // add new device form |
||
| 39 | return view('devices.create'); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Store a newly created resource in storage. |
||
| 44 | * |
||
| 45 | * @param \Illuminate\Http\Request $request |
||
| 46 | * @return \Illuminate\Http\RedirectResponse |
||
| 47 | */ |
||
| 48 | public function store(Request $request) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Display the specified resource. |
||
| 69 | * |
||
| 70 | * @param int $id |
||
| 71 | * @return \Illuminate\Http\Response |
||
| 72 | */ |
||
| 73 | public function show($id) |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Show the form for editing the specified resource. |
||
| 80 | * |
||
| 81 | * @param int $id |
||
| 82 | * @return \Illuminate\Http\Response |
||
| 83 | */ |
||
| 84 | public function edit($id) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Update the specified resource in storage. |
||
| 91 | * |
||
| 92 | * @param \Illuminate\Http\Request $request |
||
| 93 | * @param int $id |
||
| 94 | * @return \Illuminate\Http\Response |
||
| 95 | */ |
||
| 96 | public function update(Request $request, $id) |
||
| 100 | |||
| 101 | /** |
||
| 102 | * Remove the specified resource from storage. |
||
| 103 | * |
||
| 104 | * @param int $id |
||
| 105 | * @return \Illuminate\Http\Response |
||
| 106 | */ |
||
| 107 | public function destroy($id) |
||
| 111 | } |
||
| 112 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.