/** * Remove the specified resource from storage. * DELETE /workorders/{id} * * @param int $id * @return Response */ public function destroy($id) { $status = Workorder::destroy($id); return $status ? ['status' => true] : ['status' => false]; }