public function detach($workOrderId)
 {
     $workOrder = Workorder::findOrFail($workOrderId);
     return $workOrder->tasks()->detach(Input::get('task_id', ''));
 }